// // AutoBackupPopup::init from 0x7420a4 to 0x742578 (1236 bytes) // // 1 xrefs: // > AutoBackupPopup::create @ 0x742736 // // 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:39 +0000 // int __fastcall AutoBackupPopup::init(AutoBackupPopup *this, int a2) { int *v3; // r9 int v4; // r0 int v5; // r1 int v6; // r2 int inited; // r9 int v8; // r2 int v9; // r3 int v10; // r10 void (__fastcall *v11)(int, _JavaVM *); // r11 float v12; // s17 int v13; // r10 void (__fastcall *v14)(int, _JavaVM *); // r11 float v15; // s18 cocos2d::JniHelper *v16; // r7 void (__fastcall *v17)(cocos2d::JniHelper *, _JavaVM *); // r10 void (__fastcall *v18)(cocos2d::JniHelper *__hidden, _JavaVM *); // r3 void (__fastcall *v19)(cocos2d::JniHelper *, _JavaVM *); // r10 int *v20; // r0 _DWORD *v21; // r7 void (__fastcall *v22)(_DWORD *, _JavaVM *); // r10 const char *v23; // r1 int v24; // r10 int v25; // r0 int v26; // r10 void (__fastcall *v27)(int, _JavaVM *); // r11 const char *v28; // r1 _DWORD *v29; // r7 float v30; // s17 void (__fastcall *v31)(_DWORD *, _JavaVM *); // r10 _DWORD *v32; // r7 void (__fastcall *v33)(_DWORD *, _JavaVM *); // r10 int v34; // r10 int v35; // r10 void (__fastcall *v36)(int, _JavaVM *); // r11 int v37; // r11 int v38; // r10 GJSelectionStrip *v39; // r0 int v40; // r0 int v41; // r1 int v42; // r2 int v43; // r3 const char *v45; // [sp+8h] [bp-28h] int v46; // [sp+14h] [bp-1Ch] int v47; // [sp+30h] [bp+0h] BYREF int v48; // [sp+34h] [bp+4h] int v49; // [sp+38h] [bp+8h] _JavaVM v50[4]; // [sp+3Ch] [bp+Ch] BYREF v3 = (int *)((char *)this + 608); *((_DWORD *)this + 151) = a2; AutoBackupPopup::backupDirectory((AutoBackupPopup *)&v47); if ( (*((_BYTE *)this + 608) & 1) != 0 ) { **((_BYTE **)this + 154) = 0; *((_DWORD *)this + 153) = 0; } else { *((_BYTE *)this + 609) = 0; *((_BYTE *)this + 608) = 0; } std::string::reserve(v3, 0); v4 = v47; v5 = v48; v6 = v49; v47 = 0; v48 = 0; v49 = 0; *v3 = v4; v3[1] = v5; v3[2] = v6; std::string::~string((int)&v47); v47 = 0; v48 = 0; v49 = 0; std::string::__init(&v47, " ", 1u); inited = PagedListPopup::initPaged( (int)this, (cocos2d::CCLabelBMFont *)"Auto-Backups", (unsigned __int8 *)&v47, 400.0, 280.0); std::string::~string((int)&v47); if ( inited ) { PagedListPopup::createScrollArea(this, 52.0, 44.0); ScrollableContentLayer::setSectionHeight(*((ScrollableContentLayer **)this + 136), 40.0, v8, v9); PagedListPopup::updatePageArrows(this, 0, 0); v10 = *((_DWORD *)this + 145); v11 = *(void (__fastcall **)(int, _JavaVM *))(*(_DWORD *)v10 + 148); v12 = (float)(*((float *)this + 131) + (float)(*((float *)this + 133) * 0.5)) - 35.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, 1.0, 0.5); v11(v10, v50); v13 = *((_DWORD *)this + 145); v14 = *(void (__fastcall **)(int, _JavaVM *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v50, (float)(*((float *)this + 130) + (float)(*((float *)this + 132) * 0.5)) - 16.0, v12); v14(v13, v50); v15 = (float)(*((float *)this + 130) - (float)(*((float *)this + 132) * 0.5)) + 32.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v50, 0.0, 0.0, 40.0, 40.0); v16 = (cocos2d::JniHelper *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v50); v17 = *(void (__fastcall **)(cocos2d::JniHelper *, _JavaVM *))(*(_DWORD *)v16 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v50, 180.0, 22.0); v17(v16, v50); v18 = *(void (__fastcall **)(cocos2d::JniHelper *__hidden, _JavaVM *))((char *)&stru_1DC.st_value + *(_DWORD *)v16); LOWORD(v50[0].functions) = 13405; BYTE2(v50[0].functions) = 31; v18(v16, v50); v19 = *(void (__fastcall **)(cocos2d::JniHelper *, _JavaVM *))((char *)off_5C + *(_DWORD *)v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v15 + 90.0, v12); v19(v16, v50); (*(void (__fastcall **)(_DWORD, cocos2d::JniHelper *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v16, 1); v20 = CCTextInputNode::create( (CCTextInputNode *)0x432A0000, 22.0, "Search backups...", "Thonburi", (const char *)&dword_14, "bigFont.fnt", v45); LOWORD(v46) = -26986; BYTE2(v46) = -106; *((_DWORD *)this + 167) = v20; CCTextInputNode::setLabelPlaceholderColor((unsigned int)v20, v46); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 167), 0.45); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 167), 0.45); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 167), 160.0); *(_DWORD *)(*((_DWORD *)this + 167) + 420) = (char *)this + 440; *(_DWORD *)(*((_DWORD *)this + 167) + 424) = 60; v21 = *((_DWORD **)this + 167); v22 = *(void (__fastcall **)(_DWORD *, _JavaVM *))((char *)off_5C + *v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v15 + 90.0, v12 + 1.0); v22(v21, v50); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 167), 5); v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn07_001.png", v23); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 80))(v24, 1055286886); v25 = CCMenuItemSpriteExtra::create(v24, 0, (int)this, (int)AutoBackupPopup::onClearSearch, 0); *((_DWORD *)this + 168) = v25; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v25); CCMenuItemSpriteExtra::applyLargeMobileTouch(*((CCMenuItemSpriteExtra **)this + 168)); v26 = *((_DWORD *)this + 168); v27 = *(void (__fastcall **)(int, _JavaVM *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, (float)(v15 + 180.0) + 14.0, v12); v27(v26, v50); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 168) + 172))(*((_DWORD *)this + 168), 0); v29 = *((_DWORD **)this + 146); v30 = (float)(*((float *)this + 131) - (float)(*((float *)this + 133) * 0.5)) + 24.0; if ( v29 ) { v31 = *(void (__fastcall **)(_DWORD *, _JavaVM *))((char *)&dword_94 + *v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, 1.0, 0.5); v31(v29, v50); v32 = *((_DWORD **)this + 146); v33 = *(void (__fastcall **)(_DWORD *, _JavaVM *))((char *)off_5C + *v32); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v50, (float)(*((float *)this + 130) + (float)(*((float *)this + 132) * 0.5)) - 16.0, v30); v33(v32, v50); } v34 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v28); (*(void (__fastcall **)(int, int))(*(_DWORD *)v34 + 80))(v34, 1057635697); v35 = CCMenuItemSpriteExtra::create(v34, 0, (int)this, (int)AutoBackupPopup::onSettings, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v35); v36 = *(void (__fastcall **)(int, _JavaVM *))(*(_DWORD *)v35 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v50, (float)(*((float *)this + 130) + (float)(*((float *)this + 132) * 0.5)) - 4.0, (float)(*((float *)this + 131) + (float)(*((float *)this + 133) * 0.5)) - 8.0); v36(v35, v50); v37 = *((_DWORD *)this + 111); v38 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v50, (float)(*((float *)this + 130) - (float)(*((float *)this + 132) * 0.5)) + 26.0, v30); v39 = (GJSelectionStrip *)GJSelectionStrip::create( v37, v38, (const cocos2d::CCPoint *)v50, 1060571709, (int)this, (int)AutoBackupPopup::onSelectAll, 0); *((_DWORD *)this + 176) = v39; GJSelectionStrip::addCountLabel(v39, 27.0, &byte_5); v40 = *((_DWORD *)this + 176); v50[0].functions = (const struct JNIInvokeInterface *)AutoBackupPopup::onDeleteSelected; v50[1].functions = nullptr; GJSelectionStrip::addAction( v40, (cocos2d::CCSprite *)"threadBtn_delete_001.png", 53.0, (int)AutoBackupPopup::onDeleteSelected, 0, 1.2); AutoBackupPopup::reloadFiles(this, v41, v42, v43); AutoBackupPopup::buildRows(this); } return inited; }