// // LocalLevelManager::getAllLevelsInDict from 0x542c04 to 0x542cbe (186 bytes) // // 2 xrefs: // > GameLevelManager::getNextLevelName @ 0x4bbc64 // > GameLevelManager::createNewLevel @ 0x4ca8d8 // // 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:52:20 +0000 // int __fastcall LocalLevelManager::getAllLevelsInDict(cocos2d::CCArray **this) { unsigned int v2; // r5 int v3; // r9 cocos2d::CCObject *v4; // r11 const char *v5; // r1 size_t v6; // r0 int v7; // r3 const char *v9; // [sp+4h] [bp-14h] int v10; // [sp+Ch] [bp-Ch] BYREF int v11; // [sp+10h] [bp-8h] int v12; // [sp+14h] [bp-4h] int v13[3]; // [sp+18h] [bp+0h] BYREF v2 = 0; v3 = cocos2d::CCDictionary::create((cocos2d::CCDictionary *)this); while ( v2 < cocos2d::CCArray::count(*(this + 71)) ) { v4 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*(this + 71), v2); std::string::basic_string(v13, (int)v4 + 280); v10 = 0; v5 = (const char *)(LOBYTE(v13[0]) << 31); v11 = 0; if ( (v13[0] & 1) == 0 ) v5 = (char *)v13 + 1; v12 = 0; if ( (v13[0] & 1) != 0 ) v5 = (const char *)v13[2]; v9 = v5; v6 = strlen(v5); std::string::__init(&v10, v9, v6); std::string::~string((int)v13); if ( (v10 & 1) != 0 ) v7 = v11; else v7 = (int)(unsigned __int8)v10 >> 1; if ( v7 ) cocos2d::CCDictionary::setObject(v3, v4); ++v2; std::string::~string((int)&v10); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source