// // AutoBackupOptionsPopup::FLAlert_Clicked from 0x73eae8 to 0x73eca4 (444 bytes) // // 1 xrefs: // > `non-virtual thunk to'AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73ecc8 // // 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:33 +0000 // int __fastcall AutoBackupOptionsPopup::FLAlert_Clicked(int this, FLAlertLayer *a2, int a3) { AutoBackupOptionsPopup *v3; // r7 int BackupCap; // r8 const char *v6; // r8 void (__fastcall *v7)(AutoBackupOptionsPopup *, cocos2d::CCNode *, int); // r9 __int16 *v8; // r2 cocos2d::CCString *v9; // r0 const char *CString; // r10 size_t v11; // r0 cocos2d::CCNode *v12; // r0 unsigned int i; // r4 char *v14; // r2 int v15; // r3 int v16; // r3 const char *v17; // r0 void (__fastcall ***v18)(_DWORD); // r0 unsigned __int8 v19[12]; // [sp+8h] [bp-58h] BYREF int v20[3]; // [sp+14h] [bp-4Ch] BYREF int v21[3]; // [sp+20h] [bp-40h] BYREF int v22[3]; // [sp+2Ch] [bp-34h] BYREF char *v23; // [sp+38h] [bp-28h] BYREF int v24; // [sp+3Ch] [bp-24h] int v25; // [sp+40h] [bp-20h] int v26[3]; // [sp+44h] [bp-1Ch] BYREF int v27[3]; // [sp+50h] [bp-10h] BYREF v3 = (AutoBackupOptionsPopup *)this; if ( a3 ) { AutoBackupPopup::backupDirectory((AutoBackupPopup *)v19); if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 1 ) { BackupCap = AutoSaveSettingsLayer::getBackupCap((AutoSaveSettingsLayer *)((char *)&dword_0 + 1)); memset(v20, 0, sizeof(v20)); std::string::__init(v20, &unk_B6B226, 0); v6 = (const char *)AutoBackupPopup::pruneBackups(v19, BackupCap, (unsigned __int8 *)v20, 0); std::string::~string((int)v20); v7 = *(void (__fastcall **)(AutoBackupOptionsPopup *, cocos2d::CCNode *, int))(*(_DWORD *)v3 + 232); if ( v6 == (_BYTE *)&dword_0 + 1 ) v8 = (__int16 *)&unk_B6B226; else v8 = &a1i2r3e45s789g[8]; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Removed %i backup%s", v6, v8); CString = (const char *)cocos2d::CCString::getCString(v9); memset(v21, 0, sizeof(v21)); v11 = strlen(CString); std::string::__init(v21, CString, v11); memset(v22, 0, sizeof(v22)); std::string::__init(v22, &unk_B6B226, 0); v12 = TextAlertPopup::create((int)v21, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v22); v7(v3, v12, 100); std::string::~string((int)v22); std::string::~string((int)v21); } else if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 2 ) { v23 = nullptr; v24 = 0; v25 = 0; memset(v26, 0, sizeof(v26)); std::string::__init(v26, &unk_B6B226, 0); AutoBackupPopup::listBackups(v19, (unsigned int *)&v23, (unsigned __int8 *)v26); std::string::~string((int)v26); for ( i = 0; i < (v24 - (int)v23) >> 6; ++i ) { v14 = &v23[64 * i]; v15 = (unsigned __int8)v14[12]; if ( (v15 & 1) != 0 ) v16 = *((_DWORD *)v14 + 4); else v16 = v15 >> 1; if ( v16 ) { std::operator+(v27, v19, (unsigned __int8 *)v14); if ( (v27[0] & 1) != 0 ) v17 = (const char *)v27[2]; else v17 = (char *)v27 + 1; remove(v17); std::string::~string((int)v27); } } std::__vector_base::~__vector_base((void **)&v23); } AutoBackupOptionsPopup::refreshStats(v3); v18 = *((void (__fastcall ****)(_DWORD))v3 + 179); if ( v18 ) (**v18)(v18); return std::string::~string((int)v19); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source