// // LocalLevelManager::tryLoadMainLevelString from 0x5445f4 to 0x5446fe (266 bytes) // // 1 xrefs: // > LocalLevelManager::getMainLevelString @ 0x54471c // // 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:22 +0000 // _DWORD *__fastcall LocalLevelManager::tryLoadMainLevelString(LocalLevelManager *this, char *a2) { char *v2; // r7 _DWORD *result; // r0 int v4; // r10 cocos2d::CCString *v5; // r0 const char *CString; // r0 const char *v7; // r9 size_t v8; // r0 char *v9; // r2 cocos2d::CCString *v10; // r0 cocos2d::CCString *v11; // r0 const char *v12; // r10 size_t v13; // r0 int v14; // r3 unsigned __int8 *v15; // r0 char *v16; // [sp+4h] [bp-2Ch] BYREF int v17[2]; // [sp+8h] [bp-28h] BYREF char *v18; // [sp+10h] [bp-20h] unsigned __int8 v19; // [sp+14h] [bp-1Ch] BYREF char v20; // [sp+15h] [bp-1Bh] BYREF cocos2d::CCString *v21; // [sp+1Ch] [bp-14h] int v22; // [sp+20h] [bp-10h] BYREF int v23; // [sp+24h] [bp-Ch] int v24; // [sp+28h] [bp-8h] v2 = (char *)this + 292; v16 = a2; result = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_DWORD *)this + 73, (unsigned int *)&v16); if ( !result ) { v4 = cocos2d::CCFileUtils::sharedFileUtils(nullptr); v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"levels/%i.txt", v16); CString = (const char *)cocos2d::CCString::getCString(v5); v17[0] = 0; v17[1] = 0; v18 = nullptr; v7 = CString; v8 = strlen(CString); std::string::__init(v17, v7, v8); if ( (v17[0] & 1) != 0 ) v9 = v18; else v9 = (char *)v17 + 1; (*(void (__fastcall **)(unsigned __int8 *, int, char *, _DWORD))(*(_DWORD *)v4 + 24))(&v19, v4, v9, 0); if ( (v19 & 1) != 0 ) v10 = v21; else v10 = (cocos2d::CCString *)&v20; v11 = (cocos2d::CCString *)cocos2d::CCString::createWithContentsOfFile(v10, (const char *)(v19 << 31)); if ( v11 ) { v12 = (const char *)cocos2d::CCString::getCString(v11); v22 = 0; v23 = 0; v24 = 0; v13 = strlen(v12); std::string::__init(&v22, v12, v13); if ( (v22 & 1) != 0 ) v14 = v23; else v14 = (int)(unsigned __int8)v22 >> 1; if ( v14 ) { v15 = (unsigned __int8 *)std::unordered_map::operator[]((int)v2, (unsigned int *)&v16); std::string::operator=(v15, (unsigned __int8 *)&v22); } std::string::~string((int)&v22); } std::string::~string((int)&v19); return (_DWORD *)std::string::~string((int)v17); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source