// // GameLevelManager::clearDeathDataInstances from 0x4b2354 to 0x4b24d4 (384 bytes) // // 2 xrefs: // > DeathMarkerSettingsPopup::FLAlert_Clicked @ 0x76e006 // > DeathTrackerOptionsPopup::FLAlert_Clicked @ 0x770688 // // 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:50:04 +0000 // char **__fastcall GameLevelManager::clearDeathDataInstances(char **this, GJGameLevel *a2, int a3) { char **v3; // r9 int v5; // r3 const char *v6; // r6 int SavedLevel; // r0 char *v8; // r10 cocos2d::CCString *v9; // r0 const char *CString; // r11 size_t v11; // r0 char *v12; // r3 int v13; // r3 int v14; // r5 GJGameLevel *v15; // r3 int v16; // r2 unsigned int i; // r5 int v18; // r0 GJGameLevel *v19; // [sp+4h] [bp-30h] BYREF int v20; // [sp+8h] [bp-2Ch] BYREF int v21; // [sp+Ch] [bp-28h] BYREF GJGameLevel *v22; // [sp+10h] [bp-24h] BYREF char *v23; // [sp+14h] [bp-20h] BYREF int *v24; // [sp+18h] [bp-1Ch] int *v25; // [sp+1Ch] [bp-18h] int v26[3]; // [sp+20h] [bp-14h] BYREF v3 = this; v19 = a2; if ( a2 ) { v23 = nullptr; v24 = nullptr; v25 = nullptr; std::vector::__push_back_slow_path((int)&v23, &v19); v5 = *((_DWORD *)v19 + 68); v6 = (const char *)(*((_DWORD *)v19 + 67) - v5); if ( (int)v6 > 0 ) { SavedLevel = GameLevelManager::getSavedLevel((GameLevelManager *)v3, (const char *)(*((_DWORD *)v19 + 67) - v5)); v20 = SavedLevel; if ( SavedLevel && (GJGameLevel *)SavedLevel != v19 ) { if ( v24 == v25 ) { std::vector::__push_back_slow_path((int)&v23, &v20); } else { if ( v24 ) *v24 = SavedLevel; ++v24; } } v8 = v3[168]; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v6); CString = (const char *)cocos2d::CCString::getCString(v9); memset(v26, 0, sizeof(v26)); v11 = strlen(CString); std::string::__init(v26, CString, v11); v21 = cocos2d::CCDictionary::objectForKey(v8, v26); std::string::~string((int)v26); if ( v21 && (GJGameLevel *)v21 != v19 ) { if ( v24 == v25 ) { std::vector::__push_back_slow_path((int)&v23, &v21); } else { if ( v24 ) *v24 = v21; ++v24; } } v12 = v3[147]; if ( v12 ) { v13 = *((_DWORD *)v12 + 13); if ( v13 ) v14 = *(_DWORD *)(v13 + 272); else v14 = 0; while ( v13 ) { v15 = *(GJGameLevel **)(v13 + 260); v22 = v15; if ( v15 && v15 != v19 && (const char *)(*((_DWORD *)v15 + 67) - *((_DWORD *)v15 + 68)) == v6 ) { if ( v24 == v25 ) { std::vector::__push_back_slow_path((int)&v23, &v22); } else { if ( v24 ) *v24 = (int)v15; ++v24; } } if ( v14 ) v16 = *(_DWORD *)(v14 + 272); else v16 = 0; v13 = v14; v14 = v16; } } } for ( i = 0; i < ((char *)v24 - v23) >> 2; ++i ) { v18 = *(_DWORD *)&v23[4 * i]; if ( a3 ) GJGameLevel::clearDeathMarkerData(v18); else GJGameLevel::clearDeathTrackerData(v18); } return std::__vector_base::~__vector_base(&v23); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source