// // GameLevelManager::onUploadLevelCompleted from 0x4c15f4 to 0x4c1738 (324 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4da5ea // // 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:24 +0000 // int (__fastcall ***__fastcall GameLevelManager::onUploadLevelCompleted( GameLevelManager *a1, int a2, int a3))(_DWORD, GJGameLevel *) { const char *v3; // r5 cocos2d::CCDictionary *v6; // r9 bool v7; // nf size_t v8; // r0 int v9; // r0 int v10; // r5 _BOOL4 v11; // r9 int (__fastcall ***result)(_DWORD, GJGameLevel *); // r0 int v13; // r4 int (__fastcall *v14)(int, int); // r6 int LocalLevel; // r0 const char *v16; // r0 const char *v17; // r9 GJGameLevel *v18; // r0 GJGameLevel *v19; // r5 int v20; // r3 char v21[4]; // [sp+4h] [bp-20h] BYREF int v22; // [sp+8h] [bp-1Ch] int v23; // [sp+10h] [bp-14h] BYREF int v24; // [sp+14h] [bp-10h] int v25; // [sp+18h] [bp-Ch] v6 = *((cocos2d::CCDictionary **)a1 + 187); v7 = (*(_BYTE *)a3 & 1) != 0; if ( (*(_BYTE *)a3 & 1) == 0 ) v3 = (const char *)(a3 + 1); v23 = 0; if ( v7 ) v3 = *(const char **)(a3 + 8); v24 = 0; v25 = 0; v8 = strlen(v3); std::string::__init(&v23, v3, v8); cocos2d::CCDictionary::removeObjectForKey(v6); std::string::~string((int)&v23); v9 = atoi(v3); v23 = 0; v24 = 0; v25 = 0; v10 = v9; std::string::__init(&v23, "-1", 2u); v11 = sub_4A9CC4((unsigned __int8 *)a2, (unsigned __int8 *)&v23); result = (int (__fastcall ***)(_DWORD, GJGameLevel *))std::string::~string((int)&v23); if ( v11 ) { v13 = *((_DWORD *)a1 + 211); if ( v13 ) { v14 = *(int (__fastcall **)(int, int))(*(_DWORD *)v13 + 4); LocalLevel = GameLevelManager::getLocalLevel(a1, v10); return (int (__fastcall ***)(_DWORD, GJGameLevel *))v14(v13, LocalLevel); } } else { if ( (*(_BYTE *)a2 & 1) != 0 ) v16 = *(const char **)(a2 + 8); else v16 = (const char *)(a2 + 1); v17 = (const char *)atoi(v16); v18 = (GJGameLevel *)GameLevelManager::getLocalLevel(a1, v10); v19 = v18; if ( v18 ) { GJGameLevel::setLevelID(v18, (int)v17); GJGameLevel::levelWasSubmitted((int)v19); if ( GJGameLevel::isPlatformer(v19) ) { if ( *((_BYTE *)v19 + 824) ) { GJGameLevel::shippedControls((GJGameLevel *)v21, (int)v19); if ( (v21[0] & 1) != 0 ) v20 = v22; else v20 = (int)(unsigned __int8)v21[0] >> 1; if ( v20 ) { std::string::basic_string(&v23, (int)v21); GameLevelManager::uploadLevelControls(a1, v17, (int)&v23); std::string::~string((int)&v23); } std::string::~string((int)v21); } } } result = *((int (__fastcall ****)(_DWORD, GJGameLevel *))a1 + 211); if ( result ) return (int (__fastcall ***)(_DWORD, GJGameLevel *))(**result)(result, v19); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source