//
// GameLevelManager::deleteLevelList from 0x3c0d38 to 0x3c0da4 (108 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::FLAlert_Clicked @ 0x3bdcae
// > LevelListLayer::onFavorite @ 0x58fb0c
// > LevelListLayer::onDelete @ 0x591dbe
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameLevelManager::deleteLevelList(GameLevelManager *a1, GJLevelList *a2)
{
LocalLevelManager *v3; // r0
cocos2d::CCDictionary *m_favoriteLists; // r6
char *LevelListKey; // r0
_BYTE v6[4]; // [sp+8h] [bp-8h] BYREF
if ( a2->m_listType == Editor )
{
v3 = LocalLevelManager::sharedState();
cocos2d::CCArray::removeObject(v3->m_localLists, a2, 1);
}
else
{
m_favoriteLists = a1->m_favoriteLists;
LevelListKey = (char *)GameLevelManager::getLevelListKey(a1, a2->m_listID);
sub_776584((int)v6, LevelListKey);
cocos2d::CCDictionary::removeObjectForKey(m_favoriteLists);
sub_774008(v6);
}
}