// // LevelPage::addSecretDoor from 0x51348c to 0x5135b8 (300 bytes) // // 1 xrefs: // > LevelPage::updateDynamicPage @ 0x514c1c // // 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:51:34 +0000 // GameManager *__fastcall LevelPage::addSecretDoor(cocos2d::CCArray **this) { GameManager *v2; // r0 GameManager *result; // r0 GameManager *v4; // r0 cocos2d::CCDirector *UGV; // r5 const char *v6; // r1 char *v7; // r0 GameManager *v8; // r0 GameManager *v9; // r0 cocos2d::CCMenu *v10; // r0 int v11; // r6 int v12; // r0 int v13; // r0 cocos2d::CCObject *v14; // r5 float v15; // s15 float v16; // s13 bool v17; // cc float v18[4]; // [sp+Ch] [bp-14h] BYREF v2 = (GameManager *)GameManager::sharedState((GameManager *)this); result = (GameManager *)GameManager::getUGV(v2, "6"); if ( result ) { v4 = (GameManager *)GameManager::sharedState(result); UGV = (cocos2d::CCDirector *)GameManager::getUGV(v4, (char *)&a1i2r3e45s789g[10]); cocos2d::CCDirector::sharedDirector(UGV); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v18); if ( UGV ) v7 = "secretDoorBtn2_open_001.png"; else v7 = "secretDoorBtn2_closed_001.png"; v8 = (GameManager *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v7, v6); *(this + 100) = v8; v9 = (GameManager *)GameManager::sharedState(v8); v10 = (cocos2d::CCMenu *)GameManager::getUGV(v9, (char *)&a1i2r3e45s789g[9]); if ( !v10 ) v10 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 100) + 456))(*(this + 100)); v11 = cocos2d::CCMenu::create(v10); (*((void (__fastcall **)(cocos2d::CCArray **, int))*this + 57))(this, v11); v12 = (int)*(this + 100); LODWORD(v18[2]) = LevelPage::onSecretDoor; v18[3] = 0.0; v13 = CCMenuItemSpriteExtra::create(v12, 0, (int)this, (int)LevelPage::onSecretDoor, 0); *(_BYTE *)(v13 + 320) = 0; v14 = (cocos2d::CCObject *)v13; *(_BYTE *)(v13 + 321) = 1; (*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 228))(v11, v13); v15 = (float)(v18[1] * 0.5) - 110.0; v16 = 128.0; v17 = v15 <= 128.0; if ( v15 > 128.0 ) v15 = 158.0; else v16 = 30.0; if ( v17 ) v15 = v15 + v16; (*(void (__fastcall **)(int, _DWORD, float))(*(_DWORD *)v11 + 100))(v11, v18[0] * 0.5, COERCE_FLOAT(LODWORD(v15))); CCMenuItemSpriteExtra::setSizeMult((int)v14, 2.0); cocos2d::CCArray::addObject(*(this + 96), v14); return (GameManager *)cocos2d::CCArray::addObject(*(this + 96), *(this + 100)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source