// // CreatorSettingsPopup::init from 0xc96f58 to 0xc9740c (1204 bytes) // // 2 xrefs: // > CreatorSettingsPopup::create @ 0xc9766c // > @ 0x4c438 // // 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 13:05:54 +0000 // __int64 __fastcall CreatorSettingsPopup::init(cocos2d::CCNode **this, GJGameLevel *a2, CreatorSettingsDelegate *a3) { unsigned __int8 v6; // w0 unsigned int v7; // w21 cocos2d::CCDirector *v9; // x0 cocos2d::CCDirector *v10; // x0 float v11; // s8 float v12; // s9 const char *v13; // x6 GJGameLevel *v14; // x0 __int64 v15; // x0 __int64 v16; // x24 cocos2d::CCNode *v17; // x28 void (__fastcall *v18)(__int64, __int64 *); // x27 const char *v19; // x1 __int64 v20; // x24 __int64 v21; // x24 cocos2d::CCNode *v22; // x26 void (__fastcall *v23)(__int64, __int64 *); // x25 __int64 v24; // x0 unsigned __int8 v25; // w1 __int64 v26; // x0 const char *v27; // x6 __int64 v28; // x0 const char *v29; // x6 __int64 v30; // x0 __int64 v31; // x24 cocos2d::CCNode *v32; // x26 void (__fastcall *v33)(__int64, __int64 *); // x25 __int64 v34; // x0 const char *v35; // [xsp+88h] [xbp+88h] __int64 v36; // [xsp+98h] [xbp+98h] BYREF _BYTE v37[8]; // [xsp+A0h] [xbp+A0h] BYREF __int64 v38; // [xsp+A8h] [xbp+A8h] BYREF __int64 v39[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v40; // [xsp+C0h] [xbp+C0h] v6 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 300.0, 200.0, 7u, 0.0); v7 = v6; if ( v6 ) { SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); qmemcpy(&v38, "PWi", 3); v9 = (cocos2d::CCDirector *)SetupTriggerPopup::setCustomBGColor((__int64)this, (__int64)&v38); *(this + 130) = a2; *(this + 131) = a3; v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(&v36, v10); v39[0] = 0; v11 = *(float *)&v36 * 0.5; v12 = *((float *)&v36 + 1) * 0.5; v39[1] = 0; v40 = nullptr; std::string::__init(v39, "Creator Settings", 0x10u); SetupTriggerPopup::addTitle((__int64)this, (__int64)v39); if ( (v39[0] & 1) != 0 ) operator delete(v40); v14 = *(this + 130); if ( !v14 || !GJGameLevel::isPlatformer(v14) ) { v15 = ButtonSprite::create( (ButtonSprite *)"Description", (const char *)&dword_78, 0, 1, 0.8, "bigFont.fnt", "GJ_button_01.png", v13, 30.0); v16 = CCMenuItemSpriteExtra::create(v15, 0, (__int64)this, (__int64)CreatorSettingsPopup::onDescription, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v16); v17 = *(this + 69); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); LABEL_8: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v11, v12 - 10.0); cocos2d::CCNode::convertToNodeSpace(&v38, v17, (const cocos2d::CCPoint *)v37); v18(v16, &v38); LABEL_9: v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v19); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.7); v21 = CCMenuItemSpriteExtra::create(v20, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v21); v22 = *(this + 69); v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v37, v11 - (float)(*((float *)this + 183) * 0.5), v12 + (float)(*((float *)this + 184) * 0.5)); cocos2d::CCNode::convertToNodeSpace(&v38, v22, (const cocos2d::CCPoint *)v37); v23(v21, &v38); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); return v7; } v24 = (__int64)*(this + 130); if ( *(_BYTE *)(v24 + 1000) ) { v34 = ButtonSprite::create( (ButtonSprite *)"Description", (const char *)&dword_78, 0, 1, 0.8, "bigFont.fnt", "GJ_button_01.png", v13, 30.0); v16 = CCMenuItemSpriteExtra::create(v34, 0, (__int64)this, (__int64)CreatorSettingsPopup::onDescription, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v16); v17 = *(this + 69); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); } else { v25 = *(_BYTE *)(v24 + 1784); v26 = v24 + 1784; v27 = (const char *)(v25 >> 1); if ( (v25 & 1) != 0 ) v27 = *(const char **)(v26 + 8); v35 = v27; v28 = ButtonSprite::create( (ButtonSprite *)"Description", (const char *)&dword_78, 0, 1, 0.8, "bigFont.fnt", "GJ_button_01.png", v27, 30.0); v16 = CCMenuItemSpriteExtra::create(v28, 0, (__int64)this, (__int64)CreatorSettingsPopup::onDescription, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v16); v17 = *(this + 69); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); if ( !v35 ) goto LABEL_8; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v11, v12 + 15.0); cocos2d::CCNode::convertToNodeSpace(&v38, v17, (const cocos2d::CCPoint *)v37); v18(v16, &v38); v30 = ButtonSprite::create( (ButtonSprite *)"Controls", (const char *)&dword_78, 0, 1, 0.8, "bigFont.fnt", "GJ_button_01.png", v29, 30.0); v31 = CCMenuItemSpriteExtra::create(v30, 0, (__int64)this, (__int64)CreatorSettingsPopup::onControls, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v31); v32 = *(this + 69); v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v31 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v11, v12 - 35.0); cocos2d::CCNode::convertToNodeSpace(&v38, v32, (const cocos2d::CCPoint *)v37); v33(v31, &v38); goto LABEL_9; } return v7; }