// // LevelPage::addSecretDoor from 0x8c6328 to 0x8c64c8 (416 bytes) // // 2 xrefs: // > LevelPage::updateDynamicPage @ 0x8c7a28 // > @ 0x98440 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:56:34 +0000 // __int64 __fastcall LevelPage::addSecretDoor(LevelPage *this) { GameManager *v2; // x0 GameManager *UGV; // x0 GameManager *v5; // x0 cocos2d::CCDirector *v6; // x0 int v7; // w21 cocos2d::CCDirector *v8; // x0 const char *v9; // x1 char *v10; // x0 GameManager *v11; // x0 GameManager *v12; // x0 unsigned __int64 v13; // x0 __int64 v14; // x22 cocos2d::CCObject *v15; // x21 long double v16; // q0 long double v17; // q1 __int64 v18; // [xsp+30h] [xbp+30h] BYREF v2 = (GameManager *)GameManager::sharedState(_stack_chk_guard); UGV = (GameManager *)(unsigned __int8)GameManager::getUGV(v2, "6"); if ( (_BYTE)UGV ) { v5 = (GameManager *)GameManager::sharedState(UGV); v6 = (cocos2d::CCDirector *)GameManager::getUGV(v5, "8"); v7 = (unsigned __int8)v6; v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v18, v8); if ( v7 ) v10 = "secretDoorBtn2_open_001.png"; else v10 = "secretDoorBtn2_closed_001.png"; v11 = (GameManager *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v10, v9); *((_QWORD *)this + 71) = v11; v12 = (GameManager *)GameManager::sharedState(v11); v13 = (unsigned __int8)GameManager::getUGV(v12, "7"); if ( !(_BYTE)v13 ) v13 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 71) + 912LL))(*((_QWORD *)this + 71), 0); v14 = cocos2d::CCMenu::create((cocos2d::CCMenu *)v13); (*(void (__fastcall **)(LevelPage *, __int64))(*(_QWORD *)this + 456LL))(this, v14); v15 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( *((_QWORD *)this + 71), 0, (__int64)this, (__int64)LevelPage::onSecretDoor, 0); *((_BYTE *)v15 + 408) = 0; *((_BYTE *)v15 + 409) = 1; (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v14 + 456LL))(v14, v15); *(float *)&v17 = (float)(*((float *)&v18 + 1) * 0.5) + -110.0; if ( *(float *)&v17 > 128.0 ) LODWORD(v17) = 1126039552; else *(float *)&v17 = *(float *)&v17 + 30.0; *(float *)&v16 = *(float *)&v18 * 0.5; (*(void (__fastcall **)(__int64, long double, long double))(*(_QWORD *)v14 + 200LL))(v14, v16, v17); CCMenuItemSpriteExtra::setSizeMult((__int64)v15, 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), v15); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), *((cocos2d::CCObject **)this + 71)); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source