// // GameLevelOptionsLayer::init from 0xa256bc to 0xa258b8 (508 bytes) // // 2 xrefs: // > GameLevelOptionsLayer::create @ 0xa25b20 // > @ 0xf77e0 // // 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:59:42 +0000 // __int64 __fastcall GameLevelOptionsLayer::init(GameLevelOptionsLayer *this, GJGameLevel *a2) { unsigned __int8 v3; // w0 unsigned int v4; // w21 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 __int64 v8; // x24 cocos2d::CCNode *v9; // x25 void (__fastcall *v10)(__int64, __int64 *); // x23 __int64 v11; // [xsp+60h] [xbp+60h] BYREF _BYTE v12[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v13; // [xsp+70h] [xbp+70h] BYREF __int64 v14[2]; // [xsp+78h] [xbp+78h] BYREF void *v15; // [xsp+88h] [xbp+88h] __int64 v16[2]; // [xsp+90h] [xbp+90h] BYREF void *v17; // [xsp+A0h] [xbp+A0h] *((_DWORD *)this + 253) = 1110704128; *((_DWORD *)this + 258) = 1053609165; if ( a2 ) { *((_QWORD *)this + 141) = a2; cocos2d::CCObject::retain(a2); } v3 = GJOptionsLayer::init(this, 2, 280.0); v4 = v3; if ( v3 ) { v6 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v11, v7); v14[0] = 0; v14[1] = 0; v15 = nullptr; std::string::__init(v14, "Level Options", 0xDu); v16[0] = 0; v16[1] = 0; v17 = nullptr; std::string::__init( v16, "Adjust visual and gameplay settings for this level. These changes only affect how you experience t" "he level and do not impact other players.", 0xABu); v8 = InfoAlertButton::create(v14, v16, 0.8); if ( (v16[0] & 1) != 0 ) { operator delete(v17); if ( (v14[0] & 1) == 0 ) goto LABEL_7; } else if ( (v14[0] & 1) == 0 ) { LABEL_7: (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v8); v9 = *((cocos2d::CCNode **)this + 69); v10 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v12, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v11 * 0.5)) - 18.0, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v11 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(&v13, v9, (const cocos2d::CCPoint *)v12); v10(v8, &v13); SetupTriggerPopup::postSetup(this); return v4; } operator delete(v15); goto LABEL_7; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source