// // LocalLevelManager::updateLevelRevision from 0x542eac to 0x543058 (428 bytes) // // 1 xrefs: // > LocalLevelManager::dataLoaded @ 0x544df4 // // 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 // unsigned int __fastcall LocalLevelManager::updateLevelRevision(cocos2d::CCArray **this) { unsigned int v1; // r5 const char *v3; // r8 cocos2d::CCDictionary *v4; // r0 unsigned __int8 *v5; // r9 _BOOL4 v6; // r11 cocos2d::CCString *v7; // r0 const char *v8; // r11 const char *CString; // r0 const char *v10; // r8 size_t v11; // r0 unsigned int v12; // r5 unsigned int result; // r0 const char *v14; // r6 int v15; // r11 int *v16; // r2 cocos2d::CCString *v17; // r0 const char *v18; // r8 size_t v19; // r0 int v20; // r10 cocos2d::CCNode *v21; // r0 cocos2d::CCObject *v22; // r0 size_t v23; // r0 int v24; // [sp+0h] [bp-34h] void *v25; // [sp+4h] [bp-30h] cocos2d::CCObject *v26; // [sp+8h] [bp-2Ch] int v27[3]; // [sp+14h] [bp-20h] BYREF int v28; // [sp+20h] [bp-14h] BYREF int v29; // [sp+24h] [bp-10h] int *v30; // [sp+28h] [bp-Ch] v1 = 0; v25 = &_stack_chk_guard; v3 = nullptr; while ( 1 ) { v4 = (cocos2d::CCDictionary *)cocos2d::CCArray::count(*(this + 71)); if ( v1 >= (unsigned int)v4 ) break; v5 = (unsigned __int8 *)(cocos2d::CCArray::objectAtIndex(*(this + 71), v1) + 280); std::string::basic_string(v27, (int)v5); v28 = 0; v29 = 0; v30 = nullptr; std::string::__init(&v28, &unk_B6B226, 0); v6 = sub_542480((unsigned __int8 *)v27, (unsigned __int8 *)&v28); std::string::~string((int)&v28); std::string::~string((int)v27); if ( v6 ) { v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Unnamed %i", v3); v8 = v3 + 1; CString = (const char *)cocos2d::CCString::getCString(v7); v28 = 0; v29 = 0; v30 = nullptr; v10 = CString; v11 = strlen(CString); std::string::__init(&v28, v10, v11); std::string::operator=(v5, (unsigned __int8 *)&v28); v3 = v8; std::string::~string((int)&v28); } ++v1; } v12 = 0; v24 = cocos2d::CCDictionary::create(v4); while ( 1 ) { result = cocos2d::CCArray::count(*(this + 71)); if ( v12 >= result ) break; v14 = nullptr; v15 = cocos2d::CCArray::objectAtIndex(*(this + 71), v12); while ( 1 ) { std::string::basic_string(&v28, v15 + 280); v16 = (v28 & 1) != 0 ? v30 : (int *)((char *)&v28 + 1); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"rev_%i_%s", v14, v16, (unsigned __int8)v28 << 31, v24, v25); v18 = (const char *)cocos2d::CCString::getCString(v17); std::string::~string((int)&v28); v28 = 0; v29 = 0; v30 = nullptr; v19 = strlen(v18); std::string::__init(&v28, v18, v19); v20 = cocos2d::CCDictionary::objectForKey(v24, &v28); v21 = (cocos2d::CCNode *)std::string::~string((int)&v28); if ( !v20 ) break; ++v14; } v22 = (cocos2d::CCObject *)cocos2d::CCNode::create(v21); v28 = 0; v29 = 0; v30 = nullptr; v26 = v22; v23 = strlen(v18); std::string::__init(&v28, v18, v23); cocos2d::CCDictionary::setObject(v24, v26); ++v12; std::string::~string((int)&v28); *(_DWORD *)(v15 + 440) = v14; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source