// // GameLevelManager::deleteLevelList from 0x10052d7e0 to 0x10052d8ec (268 bytes) // // 4 xrefs: // > LevelListLayer::onFavorite @ 0x10035dc05 // > LevelListLayer::FLAlert_Clicked @ 0x10035fef3 // > LevelListLayer::onDelete @ 0x10035ffda // > LevelBrowserLayer::FLAlert_Clicked @ 0x100491b49 // // 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::deleteLevelList(GameLevelManager *a1, GJLevelList *a2) { double v2; // xmm0_8 LocalLevelManager *v3; // rax cocos2d::CCDictionary *m_favoriteLists; // rbx cocos2d::CCString *v5; // rax const char *CString; // r15 size_t v7; // rax size_t v8; // r14 char *v9; // r12 size_t v10; // r13 _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] if ( a2->m_listType == Editor ) { v3 = LocalLevelManager::sharedState(); sub_100720220(v3->m_localLists, a2, 1); return; } m_favoriteLists = a1->m_favoriteLists; v5 = (cocos2d::CCString *)sub_1007AB580("%i", __dst[0]); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v8 = v7; if ( v7 >= 0x17 ) { v10 = 26; if ( (v7 | 7) != 0x17 ) v10 = (v7 | 7) + 1; v9 = (char *)operator new(v10); __p = v9; __dst[0] = v10 + 1; __dst[1] = v8; goto LABEL_10; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) LABEL_10: memmove(v9, CString, v8); v9[v8] = 0; cocos2d::CCDictionary::removeObjectForKey_1((__int64)m_favoriteLists, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source