// // LevelOptionsLayer2::init from 0x573114 to 0x5731b6 (162 bytes) // // 1 xrefs: // > LevelOptionsLayer2::create @ 0x573240 // // 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 // bool LevelOptionsLayer2::init(LevelOptionsLayer2 *a1, LevelSettingsObject *a2) { _BOOL4 v3; // r7 cocos2d::CCDirector *v4; // r0 cocos2d::CCLabelBMFont *v5; // r4 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSize v8; // [sp+4h] [bp-18h] BYREF cocos2d::CCPoint v9; // [sp+Ch] [bp-10h] BYREF v3 = LevelOptionsLayer::init(a1, a2); if ( v3 ) { v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v8, v4); v5 = cocos2d::CCLabelBMFont::create(); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v5->setScale)(v5, 1060320051); setPosition = v5->setPosition; cocos2d::CCPoint::CCPoint( &v9, v8.width * 0.5, (float)((float)(a1->m_height * 0.5) + (float)(v8.height * 0.5)) - 20.0); setPosition(v5, &v9); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 1); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source