// // ClearPlatformerSavesPopup::init from 0x761d88 to 0x762318 (1424 bytes) // // 1 xrefs: // > ClearPlatformerSavesPopup::create @ 0x76169c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:59:04 +0000 // GameManager *__fastcall ClearPlatformerSavesPopup::init(CCMenuItemToggler **this) { GameManager *v2; // r0 int v3; // r7 void (__fastcall *v4)(int, _DWORD *); // r11 void (__fastcall *v5)(int, _DWORD *); // r8 const char *v6; // r2 int v7; // r8 void (__fastcall *v8)(int, _DWORD *); // r9 const char *v9; // r2 int v10; // r8 void (__fastcall *v11)(int, _DWORD *); // r11 const char *v12; // r2 int v13; // r8 void (__fastcall *v14)(int, _DWORD *); // r9 const char *v15; // r2 CCMenuItemToggler *v16; // r0 float v17; // r1 float v18; // s15 CCMenuItemToggler *v19; // r8 void (__fastcall *v20)(CCMenuItemToggler *, _DWORD *); // r11 const char *v21; // r2 CCMenuItemToggler *v22; // r0 float v23; // r1 float v24; // s15 CCMenuItemToggler *v25; // r7 void (__fastcall *v26)(CCMenuItemToggler *, _DWORD *); // r8 cocos2d::CCMenu *v27; // r0 CCMenuItemToggler *v28; // r0 const char *v29; // r1 int v30; // r0 int v31; // r8 const cocos2d::CCPoint *v32; // r11 void (__fastcall *v33)(int, _DWORD *); // r9 const char *v34; // r1 int v35; // r8 int v36; // r11 const cocos2d::CCPoint *v37; // r9 void (__fastcall *v38)(int, _DWORD *); // r8 const cocos2d::CCPoint *v39; // r11 int v40; // r10 ButtonSprite *v41; // r0 int v42; // r6 const cocos2d::CCPoint *v43; // r8 void (__fastcall *v44)(int, _BYTE *); // r7 float v46; // [sp+10h] [bp-84h] GameManager *v47; // [sp+30h] [bp-64h] float v48; // [sp+38h] [bp-5Ch] BYREF float v49; // [sp+3Ch] [bp-58h] _BYTE v50[8]; // [sp+40h] [bp-54h] BYREF char v51[8]; // [sp+48h] [bp-4Ch] BYREF _BYTE v52[8]; // [sp+50h] [bp-44h] BYREF int (__fastcall *v53)(ClearPlatformerSavesPopup *, cocos2d::CCObject *); // [sp+58h] [bp-3Ch] int v54; // [sp+5Ch] [bp-38h] int (__fastcall *v55)(ClearPlatformerSavesPopup *, cocos2d::CCObject *); // [sp+60h] [bp-34h] int v56; // [sp+64h] [bp-30h] int (__fastcall *v57)(cocos2d::CCLabelBMFont **, cocos2d::CCObject *); // [sp+68h] [bp-2Ch] BYREF int v58; // [sp+6Ch] [bp-28h] int v59[3]; // [sp+70h] [bp-24h] BYREF _DWORD v60[4]; // [sp+7Ch] [bp-18h] BYREF v2 = FLAlertLayer::init((FLAlertLayer *)this, 75); v47 = v2; if ( v2 ) { *((_BYTE *)this + 468) = 1; cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v48); *(this + 127) = (CCMenuItemToggler *)1135869952; *(this + 128) = (CCMenuItemToggler *)1132920832; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v60, 0.0, 0.0, 80.0, 80.0); v3 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v60); v4 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v3 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v60, 360.0, 270.0); v4(v3, v60); v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v3 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, v48 * 0.5, v49 * 0.5); v5(v3, v60); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v3, -1); v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Clear Platformer Saves", "bigFont.fnt", v6); v8 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, v48 * 0.5, (float)((float)(v49 * 0.5) + 135.0) - 18.0); v8(v7, v60); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1057803469); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v7); v10 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Clears the saved checkpoint on all platformer levels.", "goldFont.fnt", v9); v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, v48 * 0.5, (float)(v49 * 0.5) + 80.0); v11(v10, v60); (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1055286886); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v10); v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Stats and best runs are kept.", "goldFont.fnt", v12); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, v48 * 0.5, (float)(v49 * 0.5) + 62.0); v14(v13, v60); (*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 80))(v13, 1055286886); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v13); v16 = (CCMenuItemToggler *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "bigFont.fnt", v15); v17 = v48 * 0.5; v18 = (float)(v49 * 0.5) + 22.0; *(this + 133) = v16; v19 = v16; v20 = *(void (__fastcall **)(CCMenuItemToggler *, _DWORD *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, v17, v18); v20(v19, v60); (*(void (__fastcall **)(_DWORD, float))(*(_DWORD *)*(this + 133) + 80))(*(this + 133), 0.5); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), *(this + 133)); v22 = (CCMenuItemToggler *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "bigFont.fnt", v21); v23 = v48 * 0.5; v24 = (float)(v49 * 0.5) - 8.0; *(this + 134) = v22; v25 = v22; v26 = *(void (__fastcall **)(CCMenuItemToggler *, _DWORD *))(*(_DWORD *)v22 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, v23, v24); v26(v25, v60); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 134) + 80))(*(this + 134), 1053609165); v27 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 115) + 228))( *(this + 115), *(this + 134)); v28 = (CCMenuItemToggler *)cocos2d::CCMenu::create(v27); *(this + 111) = v28; (*(void (__fastcall **)(_DWORD, CCMenuItemToggler *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v28, 10); v30 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v29); v54 = 0; v53 = ClearPlatformerSavesPopup::onClose; v31 = CCMenuItemSpriteExtra::create(v30, 0, (int)this, (int)ClearPlatformerSavesPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v31, 1.5); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v31); v32 = *(this + 111); v33 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v31 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v57, (float)((float)(v48 * 0.5) - 180.0) + 5.0, (float)((float)(v49 * 0.5) + 135.0) - 5.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v60, v32); v33(v31, v60); v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn02_001.png", v34); (*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 80))(v35, 1059481190); v56 = 0; v55 = ClearPlatformerSavesPopup::onOptions; v36 = CCMenuItemSpriteExtra::create(v35, 0, (int)this, (int)ClearPlatformerSavesPopup::onOptions, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v36); v37 = *(this + 111); v38 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v36 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v57, (float)((float)(v48 * 0.5) + 180.0) - 20.0, (float)((float)(v49 * 0.5) + 135.0) - 20.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v60, v37); v38(v36, v60); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, (float)(v48 * 0.5) - 68.0, (float)(v49 * 0.5) - 56.0); memset(v59, 0, sizeof(v59)); std::string::__init(v59, "Clear Favorites", 0xFu); v39 = *(this + 111); v58 = 0; v57 = ClearPlatformerSavesPopup::onIncludeFavoritesToggle; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, (const cocos2d::CCPoint *)v50); v40 = (int)*(this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, 8.0, 0.0); *(this + 132) = GameToolbox::createToggleButton( (int)v59, (int)v57, v58, 0, v39, (int)v60, (int)this, v40, 0.8, 0.5, 130.0, (int)v52, "bigFont.fnt", 0, 0, nullptr); std::string::~string((int)v59); CCMenuItemToggler::setSizeMult(*(this + 132), 1.0); v41 = ButtonSprite::create( (ButtonSprite *)"Delete", (const char *)off_3C, 0, 0.6, 0, "bigFont.fnt", "GJ_button_06.png", COERCE_CONST_CHAR_(30.0), v46); v60[1] = 0; v60[0] = ClearPlatformerSavesPopup::onDelete; v42 = CCMenuItemSpriteExtra::create((int)v41, 0, (int)this, (int)ClearPlatformerSavesPopup::onDelete, 0); CCMenuItemSpriteExtra::setSizeMult(v42, 1.2); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v42); v43 = *(this + 111); v44 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v42 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, v48 * 0.5, (float)((float)(v49 * 0.5) - 135.0) + 30.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v52, v43); v44(v42, v52); ClearPlatformerSavesPopup::updateStats(this); } return v47; }