// // SecretLayer2::onDoor from 0x61e4d4 to 0x61e688 (436 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:55:02 +0000 // int __fastcall SecretLayer2::onDoor(SecretLayer2 *this, cocos2d::CCObject *a2) { GameManager *v3; // r0 cocos2d::CCDirector *UGV; // r0 SecretLayer3 *v5; // r4 AppDelegate *v6; // r0 cocos2d::CCScene *v7; // r2 cocos2d::CCScene *v8; // r0 int v10; // r6 char *v11; // r1 DialogLayer *v12; // r0 int v13; // r2 int v14; // r3 cocos2d::CCDirector *v15; // r9 int v16; // [sp+4h] [bp-30h] int v17[3]; // [sp+8h] [bp-2Ch] BYREF int v18[3]; // [sp+14h] [bp-20h] BYREF int v19[3]; // [sp+20h] [bp-14h] BYREF v3 = (GameManager *)GameManager::sharedState(this); UGV = (cocos2d::CCDirector *)GameManager::getUGV(v3, (char *)&a1i2r3e45s789g[6]); if ( UGV ) { v5 = (SecretLayer3 *)cocos2d::CCDirector::sharedDirector(UGV); v6 = SecretLayer3::scene(v5); v8 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create( (cocos2d::CCTransitionFade *)0x3F000000, *(float *)&v6, v7); return cocos2d::CCDirector::replaceScene(v5, v8); } else { memset(v17, 0, sizeof(v17)); std::string::__init(v17, "Not allowed", 0xBu); v10 = *((_DWORD *)this + 93); if ( v10 >= 0 ) { *((_DWORD *)this + 93) = v10 + 1; } else { rand(); *((_DWORD *)this + 93) = lroundf(); } if ( *((int *)this + 93) > 10 ) *((_DWORD *)this + 93) = 0; switch ( *((_DWORD *)this + 93) ) { case 0: v11 = "Sorry, I can't let you in."; goto LABEL_20; case 1: v11 = "Its too dangerous, just stay here."; goto LABEL_20; case 2: v11 = "Leave that alone..."; goto LABEL_20; case 3: v11 = "That area is off limits."; goto LABEL_20; case 4: v11 = "I keep that door locked.\nRubRub's orders."; goto LABEL_20; case 5: v11 = "I've only been down there once. Its pretty creepy."; goto LABEL_20; case 6: v11 = "Just forget about it."; goto LABEL_20; case 7: v11 = "Some things are best left alone."; goto LABEL_20; case 8: v11 = "Even I dont want to go down there."; goto LABEL_20; case 9: v11 = "Off. Limits."; goto LABEL_20; case 0xA: v11 = "Does the word locked mean nothing to you?"; LABEL_20: std::string::assign(v17, v11); break; default: break; } memset(v18, 0, sizeof(v18)); std::string::__init(v18, "The Keymaster", 0xDu); std::string::basic_string(v19, (int)v17); LOWORD(v16) = -1; BYTE2(v16) = -1; v12 = (DialogLayer *)DialogObject::create((int)v18, (int)v19, 2, 1065353216, 0, v16); v15 = DialogLayer::create(v12, (DialogObject *)((char *)&dword_0 + 2), v13, v14); std::string::~string((int)v19); std::string::~string((int)v18); (*(void (__fastcall **)(SecretLayer2 *, cocos2d::CCDirector *, int))(*(_DWORD *)this + 232))(this, v15, 100); DialogLayer::updateChatPlacement(v15, 0); DialogLayer::animateInRandomSide(v15); return std::string::~string((int)v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source