// // GameLevelManager::collectPlatformerJournalKeys from 0x4b5b78 to 0x4b5ce0 (360 bytes) // // 2 xrefs: // > GameManager::didEncodeForSave @ 0x4151e8 // > LocalLevelManager::didEncodeForSave @ 0x544222 // // 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:08 +0000 // GameLevelManager *__fastcall GameLevelManager::collectPlatformerJournalKeys(GameLevelManager *this, bool a2, int a3) { std::mutex *v4; // r9 DS_Dictionary *v5; // r5 int v6; // r7 const char *v7; // r1 int IntegerForKey; // r6 int v9; // r8 _DWORD *v10; // r3 unsigned int v11; // r2 int v12; // r1 int v13; // r2 int v15; // [sp+4h] [bp-38h] _DWORD v17[3]; // [sp+18h] [bp-24h] BYREF int v18; // [sp+24h] [bp-18h] BYREF int v19; // [sp+28h] [bp-14h] int v20; // [sp+2Ch] [bp-10h] int v21; // [sp+30h] [bp-Ch] v4 = (std::mutex *)dword_D2BB34; std::mutex::lock((std::mutex *)dword_D2BB34); *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; v5 = (DS_Dictionary *)operator new(0xD8u); DS_Dictionary::DS_Dictionary(v5); if ( sub_4B5ADC(v5) ) { DS_Dictionary::getAllKeys((DS_Dictionary *)v17); v6 = v17[0]; v15 = v17[1]; while ( v6 != v15 ) { if ( (*(_BYTE *)v6 & 1) != 0 ) v7 = *(const char **)(v6 + 8); else v7 = (const char *)(v6 + 1); if ( DS_Dictionary::stepIntoSubDictWithKey(v5, v7) ) { IntegerForKey = DS_Dictionary::getIntegerForKey(v5, "t"); v9 = DS_Dictionary::getIntegerForKey(v5, "sq"); DS_Dictionary::stepOutOfSubDict(v5); } else { v9 = 0; IntegerForKey = 0; } if ( (IntegerForKey == 2) == a3 ) { std::string::basic_string(&v18, v6); v10 = *((_DWORD **)this + 1); v11 = *((_DWORD *)this + 2); v21 = v9; if ( (unsigned int)v10 >= v11 ) { std::vector>::__push_back_slow_path>( (void **)this, &v18); } else { if ( v10 ) { v12 = v19; v13 = v20; *v10 = v18; v10[1] = v12; v10[2] = v13; v18 = 0; v19 = 0; v20 = 0; v10[3] = v21; } *((_DWORD *)this + 1) += 16; } std::string::~string((int)&v18); } v6 += 12; } DS_Dictionary::~DS_Dictionary(v5); operator delete(v5); std::__vector_base::~__vector_base((int)v17); } else { DS_Dictionary::~DS_Dictionary(v5); operator delete(v5); } std::mutex::unlock(v4); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source