// // GameLevelManager::deleteLevel from 0x100092b24 to 0x100092ca0 (380 bytes) // // 4 xrefs: // > LevelInfoLayer::onDelete @ 0x10002aae4 // > EditLevelLayer::onDelete @ 0x1000ec084 // > LevelBrowserLayer::deleteSelected @ 0x10041945c // > LevelBrowserLayer::FLAlert_Clicked @ 0x1004196f8 // // 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 __fastcall GameLevelManager::deleteLevel(GameLevelManager *a1, GJGameLevel *a2) { LocalLevelManager *v3; // x0 cocos2d::CCDictionary *m_onlineLevels; // x21 cocos2d::CCString *v6; // x0 char *CString; // x0 __int64 v8; // x0 __int64 v9; // x21 cocos2d::CCDictionary *v10; // x20 cocos2d::CCString *v11; // x0 char *v12; // x0 std::string __str; // [xsp+10h] [xbp-50h] BYREF void *__p[2]; // [xsp+28h] [xbp-38h] BYREF char v15; // [xsp+3Fh] [xbp-21h] if ( a2->m_levelType == Editor ) { v3 = LocalLevelManager::sharedState(); sub_10024A444(v3->m_localLevels, a2, 1); return; } m_onlineLevels = a1->m_onlineLevels; v6 = (cocos2d::CCString *)sub_100268F4C("%i", a2->m_levelID.random - a2->m_levelID.seed); CString = (char *)cocos2d::CCString::getCString(v6); sub_100009900(__p, CString); v8 = cocos2d::CCDictionary::objectForKey_1(m_onlineLevels, __p); v9 = v8; if ( v15 < 0 ) { operator delete(__p[0]); if ( !v9 ) goto LABEL_15; } else if ( !v8 ) { LABEL_15: v10 = a1->m_onlineLevels; v11 = (cocos2d::CCString *)sub_100268F4C("%i", a2->m_levelID.random - a2->m_levelID.seed); v12 = (char *)cocos2d::CCString::getCString(v11); sub_100009900(__p, v12); cocos2d::CCDictionary::removeObjectForKey_1((int)v10, (char *)__p); if ( v15 < 0 ) operator delete(__p[0]); return; } if ( *(_DWORD *)(v9 + 744) <= *(_DWORD *)(v9 + 740) && *(int *)(v9 + 772) <= 0 && *(int *)(v9 + 1180) <= 0 && !*(_DWORD *)(v9 + 1224) && *(_BYTE *)(v9 + 796) != 1 ) { goto LABEL_15; } sub_100009900(&__str, ""); std::string::operator=((std::string *)(v9 + 392), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); *(_BYTE *)(v9 + 993) = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source