// // AutoBackupOptionsPopup::init from 0x73de00 to 0x73e29e (1182 bytes) // // 1 xrefs: // > AutoBackupOptionsPopup::create @ 0x73e45c // // 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:58:32 +0000 // GameManager *__fastcall AutoBackupOptionsPopup::init(AutoBackupOptionsPopup *this, AutoBackupOptionsDelegate *a2) { cocos2d::CCDirector *v3; // r0 float v4; // s17 float v5; // s16 int v6; // r5 const cocos2d::CCPoint *v7; // r11 void (__fastcall *v8)(int, _DWORD *); // r10 const char *v9; // r2 int v10; // r0 int v11; // r5 void (__fastcall *v12)(int, _DWORD *); // r7 ButtonSprite *v13; // r0 int v14; // r5 const cocos2d::CCPoint *v15; // r11 void (__fastcall *v16)(int, _DWORD *); // r7 ButtonSprite *v17; // r0 int v18; // r7 const cocos2d::CCPoint *v19; // r11 void (__fastcall *v20)(int, _DWORD *); // r8 ButtonSprite *v21; // r0 int v22; // r6 const cocos2d::CCPoint *v23; // r11 void (__fastcall *v24)(int, _BYTE *); // r8 float v26; // [sp+10h] [bp-CCh] float v27; // [sp+10h] [bp-CCh] float v28; // [sp+10h] [bp-CCh] GameManager *v29; // [sp+14h] [bp-C8h] float v30[2]; // [sp+24h] [bp-B8h] BYREF _BYTE v31[8]; // [sp+2Ch] [bp-B0h] BYREF _BYTE v32[8]; // [sp+34h] [bp-A8h] BYREF _DWORD (*v33)(AutoBackupOptionsPopup *__hidden, cocos2d::CCObject *); // [sp+3Ch] [bp-A0h] int v34; // [sp+40h] [bp-9Ch] _DWORD v35[2]; // [sp+44h] [bp-98h] BYREF _DWORD v36[2]; // [sp+4Ch] [bp-90h] BYREF int v37[3]; // [sp+54h] [bp-88h] BYREF int v38[3]; // [sp+60h] [bp-7Ch] BYREF int v39; // [sp+6Ch] [bp-70h] BYREF int v40; // [sp+70h] [bp-6Ch] BYREF int v41; // [sp+74h] [bp-68h] int v42; // [sp+78h] [bp-64h] _BYTE v43[8]; // [sp+7Ch] [bp-60h] BYREF int v44; // [sp+84h] [bp-58h] char v45; // [sp+88h] [bp-54h] int v46; // [sp+8Ch] [bp-50h] int v47; // [sp+90h] [bp-4Ch] char v48; // [sp+94h] [bp-48h] float v49; // [sp+98h] [bp-44h] float v50; // [sp+9Ch] [bp-40h] int v51; // [sp+A0h] [bp-3Ch] int v52; // [sp+A4h] [bp-38h] int v53; // [sp+A8h] [bp-34h] int v54; // [sp+ACh] [bp-30h] char v55; // [sp+B0h] [bp-2Ch] char v56; // [sp+B1h] [bp-2Bh] int v57; // [sp+B4h] [bp-28h] int v58[3]; // [sp+B8h] [bp-24h] BYREF float v59; // [sp+C4h] [bp-18h] int v60[3]; // [sp+C8h] [bp-14h] BYREF *((_DWORD *)this + 179) = a2; v29 = SetupTriggerPopup::init(this, nullptr, nullptr, 340.0, 220.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v29 ) { v3 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v30); v39 = 0; v40 = 0; v41 = 0; v4 = v30[0] * 0.5; v5 = v30[1] * 0.5; std::string::__init(&v39, "Auto-Backup Options", 0x13u); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v39); std::string::~string((int)&v39); memset(v37, 0, sizeof(v37)); std::string::__init( v37, "Max per level: number of backups kept for each level. When the limit is reached, the oldest is deleted whe" "n a new backup is created. 0 = unlimited.\n" "\n" "Prune Now: applies the current limit immediately.\n" "Delete All: deletes all backups.", 0xFFu); memset(v38, 0, sizeof(v38)); std::string::__init(v38, "Auto-Backup Options", 0x13u); std::string::basic_string(&v39, (int)v37); v6 = InfoAlertButton::create((char *)v38, (int)&v39, 1063675494); std::string::~string((int)&v39); std::string::~string((int)v38); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v6); v7 = *((const cocos2d::CCPoint **)this + 111); v8 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, (float)(v4 + 170.0) - 18.0, (float)(v5 + 110.0) - 19.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, v7); v8(v6, v36); v39 = 0; v40 = 0; v41 = 0; v42 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, (const cocos2d::CCPoint *)&unk_D2DE40); v44 = 1065353216; v46 = 2; v54 = 2; v47 = 6; v48 = 1; v45 = 0; v49 = 0.0; v51 = 0; v52 = 0; v50 = 0.0; v53 = 0; v55 = 0; v56 = 0; v57 = 1116471296; memset(v58, 0, sizeof(v58)); std::string::__init(v58, "goldFont.fnt", 0xCu); v59 = 0.0; memset(v60, 0, sizeof(v60)); std::string::__init(v60, "Num", 3u); v39 = -1; std::string::assign(&v40, "Max per level (0 = unlimited):", 0x1Eu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, v4, v5 + 40.0); cocos2d::CCPoint::operator=(v43, v36); v49 = 0.0; v44 = 1058642330; v45 = 1; v48 = 1; v56 = 1; v59 = 0.55; v46 = 3; v47 = 4; v50 = 1000.0; SetupTriggerPopup::createValueControlAdvanced((cocos2d::CCDictionary **)this, (ValueControlSettings *)&v39); SetupTriggerPopup::toggleLimitArrowValue((int **)this, -1, 1); SetupTriggerPopup::toggleLimitValue((int **)this, -1, 1); v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "chatFont.fnt", v9); *((_DWORD *)this + 180) = v10; (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1057803469); v11 = *((_DWORD *)this + 180); v12 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, v4, v5 - 2.0); v12(v11, v36); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), *((_DWORD *)this + 180)); AutoBackupOptionsPopup::refreshStats(this); v13 = ButtonSprite::create( (ButtonSprite *)"Prune Now", (const char *)&dword_40, 0, 0.45, 1, "bigFont.fnt", "GJ_button_05.png", (const char *)0x41C00000, v26); v34 = 0; v33 = AutoBackupOptionsPopup::onPrune; v14 = CCMenuItemSpriteExtra::create((int)v13, 0, (int)this, (int)AutoBackupOptionsPopup::onPrune, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v14); v15 = *((const cocos2d::CCPoint **)this + 111); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, v4 - 45.0, v5 - 40.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, v15); v16(v14, v36); v17 = ButtonSprite::create( (ButtonSprite *)"Delete All", (const char *)&dword_40, 0, 0.45, 1, "bigFont.fnt", "GJ_button_06.png", (const char *)0x41C00000, v27); v35[1] = 0; v35[0] = AutoBackupOptionsPopup::onDeleteAll; v18 = CCMenuItemSpriteExtra::create((int)v17, 0, (int)this, (int)AutoBackupOptionsPopup::onDeleteAll, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v18); v19 = *((const cocos2d::CCPoint **)this + 111); v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, v4 + 45.0, v5 - 40.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, v19); v20(v18, v36); v21 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v28); v36[0] = 684; v36[1] = 1; v22 = CCMenuItemSpriteExtra::create((int)v21, 0, (int)this, 684, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v22); v23 = *((const cocos2d::CCPoint **)this + 111); v24 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v22 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v4, (float)(v5 - 110.0) + 25.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v32, v23); v24(v22, v32); SetupTriggerPopup::postSetup(this); std::string::~string((int)v60); std::string::~string((int)v58); std::string::~string((int)&v40); std::string::~string((int)v37); } return v29; }