// // GameLevelManager::encodeDataTo from 0x4ae2ec to 0x4ae4a6 (442 bytes) // // 1 xrefs: // > GameManager::encodeDataTo @ 0x41de4c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:50:00 +0000 // int __fastcall GameLevelManager::encodeDataTo(GameLevelManager *this, DS_Dictionary *a2) { cocos2d::CCArray *v4; // r0 cocos2d::CCArray *v5; // r0 int v6; // r3 cocos2d::CCArray *v7; // r7 GameManager *v8; // r0 int v9; // r3 int v10; // r6 int v11; // r2 DS_Dictionary::setDictForKey(a2, "GLM_01", *((cocos2d::CCDictionary **)this + 134)); GameLevelManager::limitSavedLevels((cocos2d::CCDictionary **)this); GameLevelManager::purgeUnusedLevels((cocos2d::CCDictionary **)this); GameLevelManager::updateLevelOrders((cocos2d::CCDictionary **)this); GameLevelManager::updateLevelOrders((cocos2d::CCDictionary **)this); DS_Dictionary::setDictForKey(a2, "GLM_03", *((cocos2d::CCDictionary **)this + 136)); GameLevelManager::cleanupDailyLevels((cocos2d::CCDictionary **)this); DS_Dictionary::setDictForKey(a2, "GLM_10", *((cocos2d::CCDictionary **)this + 147)); DS_Dictionary::setIntegerForKey(a2, "GLM_11", *((_DWORD *)this + 150)); DS_Dictionary::setIntegerForKey(a2, "GLM_17", *((_DWORD *)this + 153)); DS_Dictionary::setIntegerForKey(a2, "GLM_23", *((_DWORD *)this + 156)); DS_Dictionary::setIntegerForKey(a2, "GLM_24", *((_DWORD *)this + 163)); DS_Dictionary::setIntegerForKey(a2, "GLM_25", *((_DWORD *)this + 164)); DS_Dictionary::setIntegerForKey(a2, "GLM_26", *((_DWORD *)this + 165)); DS_Dictionary::setIntegerForKey(a2, "GLM_27", *((_DWORD *)this + 166)); DS_Dictionary::setIntegerForKey(a2, "GLM_28", *((unsigned __int8 *)this + 668)); v4 = (cocos2d::CCArray *)DS_Dictionary::setDictForKey(a2, "GLM_16", *((cocos2d::CCDictionary **)this + 168)); v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4); v6 = *((_DWORD *)this + 139); v7 = v5; if ( v6 ) { v9 = *(_DWORD *)(v6 + 52); if ( v9 ) v10 = *(_DWORD *)(v9 + 272); else v10 = 0; while ( v9 ) { cocos2d::CCArray::addObject(v7, *(cocos2d::CCObject **)(v9 + 260)); if ( v10 ) v11 = *(_DWORD *)(v10 + 272); else v11 = 0; v9 = v10; v10 = v11; } } DS_Dictionary::setArrayForKey(a2, "GLM_22", v7); v8 = (GameManager *)DS_Dictionary::setBoolMapForKey(a2, "GLM_09", (char *)this + 676); if ( !*(_BYTE *)(GameManager::sharedState(v8) + 278) ) { DS_Dictionary::setDictForKey(a2, "GLM_07", *((cocos2d::CCDictionary **)this + 140)); DS_Dictionary::setDictForKey(a2, "GLM_14", *((cocos2d::CCDictionary **)this + 144)); } DS_Dictionary::setDictForKey(a2, "GLM_12", *((cocos2d::CCDictionary **)this + 141)); DS_Dictionary::setDictForKey(a2, "GLM_13", *((cocos2d::CCDictionary **)this + 142)); DS_Dictionary::setDictForKey(a2, "GLM_15", *((cocos2d::CCDictionary **)this + 143)); DS_Dictionary::setDictForKey(a2, "GLM_06", *((cocos2d::CCDictionary **)this + 138)); DS_Dictionary::setDictForKey(a2, "GLM_08", *((cocos2d::CCDictionary **)this + 135)); DS_Dictionary::setDictForKey(a2, "GLM_18", *((cocos2d::CCDictionary **)this + 145)); DS_Dictionary::setDictForKey(a2, "GLM_19", *((cocos2d::CCDictionary **)this + 146)); return DS_Dictionary::setArrayForKey(a2, "GLM_20", *((cocos2d::CCArray **)this + 243)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source