// // AutoBackupPopup::onRestore from 0x73cc50 to 0x73cd8a (314 bytes) // // 0 xrefs: // // 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:31 +0000 // int __fastcall AutoBackupPopup::onRestore(AutoBackupPopup *this, cocos2d::CCObject *a2) { int result; // r0 int v4; // r2 LocalLevelManager *v5; // r0 cocos2d::CCArray **v6; // r0 cocos2d::CCNotificationCenter *v7; // r0 cocos2d::CCNotificationCenter *v8; // r8 int *v9; // r0 cocos2d::CCNotificationCenter *v10; // r9 cocos2d::CCObject *v11; // r4 int *v12; // [sp+Ch] [bp-20h] BYREF int *v13; // [sp+10h] [bp-1Ch] int *v14; // [sp+14h] [bp-18h] int v15[3]; // [sp+18h] [bp-14h] BYREF result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); if ( result >= 0 ) { v4 = *((_DWORD *)this + 158); if ( result < (*((_DWORD *)this + 159) - v4) >> 6 ) { std::operator+(v15, (unsigned __int8 *)this + 608, (unsigned __int8 *)(v4 + (result << 6))); v13 = (int *)operator new(0xCu); v12 = v13; v14 = v13 + 3; std::string::basic_string(v13, (int)v15); v13 += 3; v5 = (LocalLevelManager *)std::string::~string((int)v15); v6 = (cocos2d::CCArray **)LocalLevelManager::sharedState(v5); v7 = (cocos2d::CCNotificationCenter *)LocalLevelManager::importLevelsFromPaths(v6, &v12, *((_DWORD *)this + 151)); v8 = v7; if ( (int)v7 > 0 ) { v10 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v7); v11 = (cocos2d::CCObject *)operator new(0x38u); cocos2d::CCObject::CCObject(v11); *((_DWORD *)v11 + 13) = v8; *(_DWORD *)v11 = &off_C8DBE0; cocos2d::CCObject::autorelease(v11); cocos2d::CCNotificationCenter::postNotification(v10, "LevelsImportedNotification", v11); (*(void (__fastcall **)(AutoBackupPopup *, _DWORD))(*(_DWORD *)this + 680))(this, 0); } else { memset(v15, 0, sizeof(v15)); std::string::__init(v15, "Could not read this backup.", 0x1Bu); v9 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (int)v15, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(int *))(*v9 + 656))(v9); std::string::~string((int)v15); } return std::__vector_base::~__vector_base((int)&v12); } } return result; }