// // GameLevelManager::onUploadLevelCompleted from 0x10008a400 to 0x10008a544 (324 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x100089060 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GameLevelManager::onUploadLevelCompleted(__int64 a1, char *a2, char *__s) { char *v3; // x21 __int64 v6; // x22 int v7; // w21 _BOOL8 v8; // x0 _BOOL4 v9; // w22 __int64 v10; // x19 GJGameLevel *LocalLevel; // x1 GameLevelManager *v12; // x0 int v13; // w22 GJGameLevel *v14; // x0 GJGameLevel *v15; // x20 float v16; // s0 void (__fastcall ***v17)(_QWORD, GJGameLevel *); // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v19; // [xsp+1Fh] [xbp-21h] v3 = __s; if ( __s[23] < 0 ) v3 = *(char **)__s; v6 = *(_QWORD *)(a1 + 608); sub_100009900(__p, v3); cocos2d::CCDictionary::removeObjectForKey_1(v6, (char *)__p); if ( v19 < 0 ) operator delete(__p[0]); v7 = atoi(v3); sub_100009900(__p, "-1"); v8 = sub_1000045BC(a2, __p); v9 = v8; if ( v19 < 0 ) { operator delete(__p[0]); if ( v9 ) { LABEL_7: v10 = *(_QWORD *)(a1 + 752); if ( v10 ) { LocalLevel = GameLevelManager::getLocalLevel((GameLevelManager *)v8, v7); (*(void (__fastcall **)(__int64, GJGameLevel *))(*(_QWORD *)v10 + 8LL))(v10, LocalLevel); } return; } } else if ( v8 ) { goto LABEL_7; } if ( a2[23] < 0 ) a2 = *(char **)a2; v12 = (GameLevelManager *)atoi(a2); v13 = (int)v12; v14 = GameLevelManager::getLocalLevel(v12, v7); v15 = v14; if ( v14 ) { v14->m_levelID.value = v13; v16 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; v15->m_levelID.seed = (int)v16; v15->m_levelID.random = v13 + (int)v16; v15->m_isUploaded = 1; } v17 = *(void (__fastcall ****)(_QWORD, GJGameLevel *))(a1 + 752); if ( v17 ) (**v17)(v17, v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source