// // AutoBackupOptionsPopup::init from 0xc5687c to 0xc56f88 (1804 bytes) // // 2 xrefs: // > AutoBackupOptionsPopup::create @ 0xc571e8 // > @ 0xddd70 // // 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:12 +0000 // __int64 __fastcall AutoBackupOptionsPopup::init(AutoBackupOptionsPopup *this, AutoBackupOptionsDelegate *a2) { unsigned __int8 v3; // w0 unsigned int v4; // w24 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 float v8; // s9 float v9; // s8 __int64 v10; // x25 void (__fastcall *v11)(__int64, __int64 *); // x26 cocos2d::CCNode *v12; // x27 const char *v13; // x2 __int64 v14; // x0 __int64 v15; // x28 void (__fastcall *v16)(__int64, __int64 *); // x22 const char *v17; // x6 __int64 v18; // x0 __int64 v19; // x22 cocos2d::CCNode *v20; // x28 void (__fastcall *v21)(__int64, __int64 *); // x27 const char *v22; // x6 __int64 v23; // x0 __int64 v24; // x27 cocos2d::CCNode *v25; // x26 void (__fastcall *v26)(__int64, __int64 *); // x22 const char *v27; // x6 __int64 v28; // x0 __int64 v29; // x22 cocos2d::CCNode *v30; // x26 void (__fastcall *v31)(__int64, __int64 *); // x25 __int64 v32; // [xsp+98h] [xbp+98h] BYREF _BYTE v33[8]; // [xsp+A0h] [xbp+A0h] BYREF __int64 v34; // [xsp+A8h] [xbp+A8h] BYREF __int64 v35; // [xsp+B0h] [xbp+B0h] BYREF size_t v36; // [xsp+B8h] [xbp+B8h] void *v37; // [xsp+C0h] [xbp+C0h] __int64 v38[2]; // [xsp+C8h] [xbp+C8h] BYREF void *v39; // [xsp+D8h] [xbp+D8h] __int64 v40; // [xsp+E0h] [xbp+E0h] BYREF size_t v41; // [xsp+E8h] [xbp+E8h] BYREF void *v42; // [xsp+F0h] [xbp+F0h] void *v43; // [xsp+F8h] [xbp+F8h] __int64 v44; // [xsp+100h] [xbp+100h] BYREF float v45; // [xsp+108h] [xbp+108h] char v46; // [xsp+10Ch] [xbp+10Ch] int v47; // [xsp+110h] [xbp+110h] int v48; // [xsp+114h] [xbp+114h] char v49; // [xsp+118h] [xbp+118h] int v50; // [xsp+11Ch] [xbp+11Ch] int v51; // [xsp+120h] [xbp+120h] int v52; // [xsp+124h] [xbp+124h] int v53; // [xsp+128h] [xbp+128h] int v54; // [xsp+12Ch] [xbp+12Ch] int v55; // [xsp+130h] [xbp+130h] char v56; // [xsp+134h] [xbp+134h] char v57; // [xsp+135h] [xbp+135h] int v58; // [xsp+138h] [xbp+138h] __int64 v59[2]; // [xsp+140h] [xbp+140h] BYREF void *v60; // [xsp+150h] [xbp+150h] int v61; // [xsp+158h] [xbp+158h] __int64 v62[2]; // [xsp+160h] [xbp+160h] BYREF void *v63; // [xsp+170h] [xbp+170h] *((_QWORD *)this + 128) = a2; v3 = SetupTriggerPopup::init(this, nullptr, nullptr, 340.0, 220.0, 1u, 0.0); v4 = v3; if ( v3 ) { v6 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup(this); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v32, v7); v40 = 0; v8 = *(float *)&v32 * 0.5; v41 = 0; v9 = *((float *)&v32 + 1) * 0.5; v42 = nullptr; std::string::__init(&v40, "Auto-Backup Options", 0x13u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v40); if ( (v40 & 1) != 0 ) operator delete(v42); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init( &v35, "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); v38[0] = 0; v38[1] = 0; v39 = nullptr; std::string::__init(v38, "Auto-Backup Options", 0x13u); v40 = 0; v41 = 0; v42 = nullptr; if ( (v35 & 1) != 0 ) { std::string::__init(&v40, v37, v36); } else { v40 = v35; v41 = v36; v42 = v37; } v10 = InfoAlertButton::create((char *)v38, (char *)&v40, 0.9); if ( (v40 & 1) != 0 ) operator delete(v42); if ( (v38[0] & 1) != 0 ) operator delete(v39); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v10); v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL); v12 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (float)(v8 + 170.0) - 18.0, (float)(v9 + 110.0) - 19.0); cocos2d::CCNode::convertToNodeSpace(&v34, v12, (const cocos2d::CCPoint *)v33); v11(v10, &v34); LODWORD(v40) = 0; v41 = 0; v42 = nullptr; v43 = nullptr; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, (const cocos2d::CCPoint *)&unk_155ED60); v47 = 2; v55 = 2; v48 = 6; v46 = 0; v45 = 1.0; v49 = 1; v50 = 0; v52 = 0; v51 = 0; v53 = 0; v54 = 0; v56 = 0; v57 = 0; v58 = 1116471296; v59[0] = 0; v59[1] = 0; v60 = nullptr; std::string::__init(v59, "goldFont.fnt", 0xCu); v62[0] = 0; v62[1] = 0; v61 = 0; v63 = nullptr; std::string::__init(v62, "Num", 3u); LODWORD(v40) = -1; std::string::assign((__int64 *)&v41, "Max per level (0 = unlimited):", 0x1Eu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, v8, v9 + 40.0); cocos2d::CCPoint::operator=(&v44, &v34); v46 = 1; v45 = 0.6; v47 = 3; v48 = 4; v49 = 1; v57 = 1; v61 = 1057803469; v50 = 0; v51 = 1148846080; SetupTriggerPopup::createValueControlAdvanced((cocos2d::CCArray **)this, (ValueControlSettings *)&v40); SetupTriggerPopup::toggleLimitArrowValue((__int64 **)this, -1, 1); SetupTriggerPopup::toggleLimitValue((__int64 **)this, -1, 1); v14 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "chatFont.fnt", v13); *((_QWORD *)this + 129) = v14; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 0.55); v15 = *((_QWORD *)this + 129); v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, v8, v9 - 2.0); v16(v15, &v34); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 129)); AutoBackupOptionsPopup::refreshStats(this); v18 = ButtonSprite::create( (ButtonSprite *)"Prune Now", (const char *)&dword_40, 0, 1, 0.45, "bigFont.fnt", "GJ_button_05.png", v17, 24.0); v19 = CCMenuItemSpriteExtra::create(v18, 0, (__int64)this, (__int64)AutoBackupOptionsPopup::onPrune, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v19); v20 = *((cocos2d::CCNode **)this + 69); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v8 - 45.0, v9 - 40.0); cocos2d::CCNode::convertToNodeSpace(&v34, v20, (const cocos2d::CCPoint *)v33); v21(v19, &v34); v23 = ButtonSprite::create( (ButtonSprite *)"Delete All", (const char *)&dword_40, 0, 1, 0.45, "bigFont.fnt", "GJ_button_06.png", v22, 24.0); v24 = CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)AutoBackupOptionsPopup::onDeleteAll, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v24); v25 = *((cocos2d::CCNode **)this + 69); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v8 + 45.0, v9 - 40.0); cocos2d::CCNode::convertToNodeSpace(&v34, v25, (const cocos2d::CCPoint *)v33); v26(v24, &v34); v28 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v27, 30.0); v29 = CCMenuItemSpriteExtra::create(v28, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v29); v30 = *((cocos2d::CCNode **)this + 69); v31 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v8, (float)(v9 - 110.0) + 25.0); cocos2d::CCNode::convertToNodeSpace(&v34, v30, (const cocos2d::CCPoint *)v33); v31(v29, &v34); SetupTriggerPopup::postSetup(this); if ( (v62[0] & 1) != 0 ) operator delete(v63); if ( (v59[0] & 1) != 0 ) operator delete(v60); if ( (v41 & 1) != 0 ) operator delete(v43); if ( (v35 & 1) != 0 ) operator delete(v37); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source