// // LevelOptionsLayer2::init from 0x10017dd64 to 0x10017de30 (204 bytes) // // 1 xrefs: // > LevelOptionsLayer2::create @ 0x10017db1c // // 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 __fastcall LevelOptionsLayer2::init(LevelOptionsLayer2 *a1, LevelSettingsObject *a2) { _BOOL4 v3; // w19 cocos2d::CCDirector *v4; // x0 cocos2d::CCLabelBMFont *v5; // x21 __n128 v6; // q0 __n128 v7; // q1 _DWORD v9[4]; // [xsp+0h] [xbp-30h] BYREF v3 = LevelOptionsLayer::init(a1, a2); if ( v3 ) { v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4); v5 = cocos2d::CCLabelBMFont::create_1("Legacy Options", "goldFont.fnt"); v6 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v5->setScale)(v5, 0.7); v6.n128_f32[0] = *(float *)&v9[2] * 0.5; v7.n128_f32[0] = (float)((float)(*(float *)&v9[3] * 0.5) + (float)(a1->m_height * 0.5)) + -20.0; sub_100022980(v6, v7, v9); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v5->setPosition)(v5, v9); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v5, 1); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source