// // LevelBrowserLayer::deleteSelected from 0x4a8ae8 to 0x4a8c48 (352 bytes) // // 1 xrefs: // > LevelBrowserLayer::FLAlert_Clicked @ 0x4a8ea4 // // 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:49:56 +0000 // cocos2d::CCArray *__fastcall LevelBrowserLayer::deleteSelected(cocos2d::CCArray *this) { GJSearchObject **v1; // r6 cocos2d::CCArray *v2; // r0 GJSearchObject *v3; // r3 cocos2d::CCArray *v4; // r7 int *v5; // r2 int v6; // r3 cocos2d::CCObject **v7; // r2 unsigned int v8; // r4 cocos2d::CCObject **v9; // r8 cocos2d::CCObject *v10; // r1 cocos2d::CCObject *v11; // t1 const char *v12; // r1 const char *CString; // r8 int *v14; // r2 int v15; // r3 GJGameLevel **v16; // r2 unsigned int v17; // r4 GJGameLevel **v18; // r8 GJGameLevel *v19; // r9 GJGameLevel *v20; // t1 GameLevelManager *v21; // r0 cocos2d::CCString *v22; // r0 size_t v23; // r0 void (__fastcall *v24)(GJSearchObject **, int, int); // r9 int v25; // r0 int v26[3]; // [sp+8h] [bp-2Ch] BYREF int v27[3]; // [sp+14h] [bp-20h] BYREF int v28[3]; // [sp+20h] [bp-14h] BYREF v1 = (GJSearchObject **)this; if ( *((_DWORD *)this + 124) ) { v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(this); v3 = v1[124]; v4 = v2; if ( v3 ) { v5 = *((int **)v3 + 13); v6 = *v5; if ( *v5 ) { v7 = (cocos2d::CCObject **)v5[3]; v8 = (unsigned int)(&v7[v6] + 0x3FFFFFFF); v9 = v7; while ( (unsigned int)v9 <= v8 ) { v11 = *v9++; v10 = v11; if ( !v11 ) break; if ( *((_BYTE *)v10 + 595) ) cocos2d::CCArray::addObject(v4, v10); } } } this = (cocos2d::CCArray *)cocos2d::CCArray::count(v4); if ( this ) { if ( v4 ) { v14 = *((int **)v4 + 13); v15 = *v14; if ( *v14 ) { v16 = (GJGameLevel **)v14[3]; v17 = (unsigned int)(&v16[v15] + 0x3FFFFFFF); v18 = v16; while ( (unsigned int)v18 <= v17 ) { v20 = *v18++; v19 = v20; if ( !v20 ) break; v21 = (GameLevelManager *)GameLevelManager::sharedState(this); this = (cocos2d::CCArray *)GameLevelManager::deleteLevel(v21, v19); } } } LevelBrowserLayer::loadPage(v1, v1[125]); v12 = (const char *)cocos2d::CCArray::count(v4); if ( v12 == (_BYTE *)&dword_0 + 1 ) { CString = "Level deleted!"; } else { v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i levels deleted!", v12); CString = (const char *)cocos2d::CCString::getCString(v22); } memset(v26, 0, sizeof(v26)); v23 = strlen(CString); std::string::__init(v26, CString, v23); v24 = *((void (__fastcall **)(GJSearchObject **, int, int))*v1 + 58); std::string::basic_string(v27, (int)v26); memset(v28, 0, sizeof(v28)); std::string::__init(v28, &unk_B6B226, 0); v25 = TextAlertPopup::create(v27, 1056964608, 1058642330, 150, v28); v24(v1, v25, 100); std::string::~string((int)v28); std::string::~string((int)v27); return (cocos2d::CCArray *)std::string::~string((int)v26); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source