// // GameLevelManager::markLevelAsDownloaded from 0x8020b0 to 0x802220 (368 bytes) // // 3 xrefs: // > GameLevelManager::markListAsDownloaded @ 0x802340 // > GameLevelManager::processOnDownloadLevelCompleted @ 0x859994 // > @ 0xc9d48 // // 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:44 +0000 // __int64 __fastcall GameLevelManager::markLevelAsDownloaded(cocos2d::CCDictionary **this, unsigned int a2) { __int64 v4; // x24 cocos2d::CCObject *v5; // x23 const char *LevelKey; // x0 const char *v7; // x25 size_t v8; // x0 size_t v9; // x19 unsigned __int64 v10; // x0 __int64 v11; // x22 char *v12; // x0 char *v13; // x3 __int64 v15; // [xsp+50h] [xbp+50h] BYREF size_t v16; // [xsp+58h] [xbp+58h] void *v17; // [xsp+60h] [xbp+60h] if ( (unsigned int)cocos2d::CCDictionary::count(*(this + 99)) > 0x63 ) { cocos2d::CCDictionary::getFirstKey(&v15, *(this + 99)); cocos2d::CCDictionary::removeObjectForKey(*(this + 99), &v15); if ( (v15 & 1) != 0 ) operator delete(v17); } v4 = (__int64)*(this + 99); v5 = *(this + 189); LevelKey = (const char *)GameLevelManager::getLevelKey((GameLevelManager *)this, (const char *)a2); v15 = 0; v7 = LevelKey; v16 = 0; v17 = nullptr; v8 = strlen(LevelKey); v9 = v8; if ( v8 > 0xFFFFFFFFFFFFFFEFLL ) sub_62C79C(); if ( v8 > 0x16 ) { v10 = (v8 + 16) & 0xFFFFFFFFFFFFFFF0LL; v11 = v10 | 1; v12 = (char *)operator new(v10); v15 = v11; v13 = v12; v17 = v12; v16 = v9; LABEL_7: v13 = (char *)memcpy(v13, v7, v9); goto LABEL_8; } LOBYTE(v15) = 2 * v8; v13 = (char *)&v15 + 1; if ( v8 ) goto LABEL_7; LABEL_8: v13[v9] = 0; cocos2d::CCDictionary::setObject(v4, v5); if ( (v15 & 1) != 0 ) operator delete(v17); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source