// // GameLevelManager::deleteLevelList from 0x8018b8 to 0x8019f8 (320 bytes) // // 4 xrefs: // > LevelBrowserLayer::FLAlert_Clicked @ 0x7fc7d8 // > LevelListLayer::onFavorite @ 0xba9184 // > LevelListLayer::onDelete @ 0xba983c // > @ 0xe18f8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:54:43 +0000 // __int64 __fastcall GameLevelManager::deleteLevelList(GameLevelManager *this, GJLevelList *a2) { __int64 v2; // x23 const char *LevelListKey; // x0 const char *v4; // x24 size_t v5; // x0 size_t v6; // x19 unsigned __int64 v7; // x0 char *v8; // x3 __int64 v10; // x0 __int64 v12; // [xsp+50h] [xbp+50h] BYREF size_t v13; // [xsp+58h] [xbp+58h] void *v14; // [xsp+60h] [xbp+60h] if ( *((_DWORD *)a2 + 136) == 2 ) { v10 = LocalLevelManager::sharedState(this); cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(v10 + 368), a2, 1); return _stack_chk_guard; } v2 = *((_QWORD *)this + 98); LevelListKey = (const char *)GameLevelManager::getLevelListKey(this, (const char *)*((unsigned int *)a2 + 86)); v12 = 0; v4 = LevelListKey; v13 = 0; v14 = nullptr; v5 = strlen(LevelListKey); v6 = v5; if ( v5 > 0xFFFFFFFFFFFFFFEFLL ) sub_62C79C(); if ( v5 > 0x16 ) { v7 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL; v12 = v7 | 1; v8 = (char *)operator new(v7); v14 = v8; v13 = v6; LABEL_5: v8 = (char *)memcpy(v8, v4, v6); goto LABEL_6; } LOBYTE(v12) = 2 * v5; v8 = (char *)&v12 + 1; if ( v5 ) goto LABEL_5; LABEL_6: v8[v6] = 0; cocos2d::CCDictionary::removeObjectForKey(v2, &v12); if ( (v12 & 1) != 0 ) operator delete(v14); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source