//
// GameLevelManager::deleteLevelList from 0x4acfec to 0x4ad068 (124 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::FLAlert_Clicked @ 0x4a8f72
// > LevelListLayer::onFavorite @ 0x6d4d6c
// > LevelListLayer::onDelete @ 0x6d4eda
//
// 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:59 +0000
//
int __fastcall GameLevelManager::deleteLevelList(cocos2d::CCDictionary **this, const char **a2)
{
int v3; // r0
cocos2d::CCDictionary *v5; // r6
const char *LevelListKey; // r0
const char *v7; // r7
size_t v8; // r0
int v9[3]; // [sp+0h] [bp-14h] BYREF
if ( a2[102] == (_BYTE *)&dword_0 + 2 )
{
v3 = LocalLevelManager::sharedState((LocalLevelManager *)this);
return cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(v3 + 288), (cocos2d::CCObject *)a2, 1);
}
else
{
v5 = *(this + 139);
LevelListKey = (const char *)GameLevelManager::getLevelListKey((GameLevelManager *)this, a2[69]);
memset(v9, 0, sizeof(v9));
v7 = LevelListKey;
v8 = strlen(LevelListKey);
std::string::__init(v9, v7, v8);
cocos2d::CCDictionary::removeObjectForKey(v5);
return std::string::~string((int)v9);
}
}