// // SecretLayer2::getBasicMessage from 0x4ec7ec to 0x4ec9bc (464 bytes) // // 1 xrefs: // > SecretLayer2::getMessage @ 0x4eca8e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // SecretLayer2 *__fastcall SecretLayer2::getBasicMessage(SecretLayer2 *this, int a2, char *a3, char *a4) { int v6; // r3 int v7; // r3 SecretLayer2 *v8; // r0 char *v9; // r1 cocos2d::CCString *v10; // r0 char *CString; // r0 char *v13[2]; // [sp+8h] [bp-8h] BYREF v13[0] = a3; v13[1] = a4; ++*(_DWORD *)(a2 + 344); v6 = *(_DWORD *)(a2 + 332); if ( v6 >= 0 ) { v7 = v6 + 1; } else if ( vcvts_n_f32_s32(rand(), 0x1Fu) <= 0.8 ) { v7 = 0; } else { v7 = 9; } *(_DWORD *)(a2 + 332) = v7; if ( *(int *)(a2 + 332) > 29 ) *(_DWORD *)(a2 + 332) = 0; switch ( *(_DWORD *)(a2 + 332) ) { case 0: v8 = this; v9 = "I have heard about you"; goto LABEL_41; case 1: GameManager::sharedState(); sub_775C20(v13); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s the sneaky one...", v13[0]); CString = (char *)cocos2d::CCString::getCString(v10); sub_776584((int)this, CString); sub_774008(v13); return this; case 2: v8 = this; v9 = "You think you can fool me"; goto LABEL_41; case 3: v8 = this; v9 = "You are deeply mistaken"; goto LABEL_41; case 4: v8 = this; v9 = "Go away!"; goto LABEL_41; case 5: v8 = this; v9 = "I should have hid this room better..."; goto LABEL_41; case 6: v8 = this; v9 = "You're not supposed to be in here..."; goto LABEL_41; case 7: v8 = this; v9 = "RubRub won't like this..."; goto LABEL_41; case 8: v8 = this; v9 = "zzzZZZZ..."; goto LABEL_41; case 9: v8 = this; v9 = "Don't touch that!"; goto LABEL_41; case 0xA: v8 = this; v9 = "Why you touch my stuff?"; goto LABEL_41; case 0xB: v8 = this; v9 = "RubRub better not find you in here..."; goto LABEL_41; case 0xC: v8 = this; v9 = "Can't you just leave?"; goto LABEL_41; case 0xD: v8 = this; v9 = "This is not the room you are looking for..."; goto LABEL_41; case 0xE: v8 = this; v9 = "Sneaky sneaky..."; goto LABEL_41; case 0xF: v8 = this; v9 = "It's my precious..."; goto LABEL_41; case 0x10: v8 = this; v9 = "You shall not pass!"; goto LABEL_41; case 0x11: v8 = this; v9 = "Don't push the button!"; goto LABEL_41; case 0x12: v8 = this; v9 = "You're gonna get me in trouble..."; goto LABEL_41; case 0x13: v8 = this; v9 = "This is getting ridiculus..."; goto LABEL_41; case 0x14: v8 = this; v9 = "Go collect some stars"; goto LABEL_41; case 0x15: v8 = this; v9 = "Maybe there are new levels?"; goto LABEL_41; case 0x16: v8 = this; v9 = "Just, stop bothering me"; goto LABEL_41; case 0x17: v8 = this; v9 = "I'm gonna stop talking"; goto LABEL_41; case 0x18: v8 = this; v9 = "..."; goto LABEL_41; case 0x19: v8 = this; v9 = "......"; goto LABEL_41; case 0x1A: v8 = this; v9 = "GAH!"; goto LABEL_41; case 0x1B: v8 = this; v9 = "You're hopeless..."; goto LABEL_41; case 0x1C: v8 = this; v9 = "Really, still here?"; goto LABEL_41; case 0x1D: v8 = this; v9 = "Fine, press the button"; goto LABEL_41; case 0x1E: v8 = this; v9 = "Happy now?"; goto LABEL_41; default: v8 = this; v9 = "Don't touch that!"; LABEL_41: sub_776584((int)v8, v9); return this; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source