// // GameLevelManager::onUploadLevelCompleted from 0x3c53e0 to 0x3c54aa (202 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x3d6ff2 // // 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 // LevelUploadDelegate *__fastcall GameLevelManager::onUploadLevelCompleted( GameLevelManager *a1, const char **a2, char **a3, int a4) { const char *v4; // r7 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r10 int v8; // r7 _BOOL4 v9; // r9 LevelUploadDelegate *result; // r0 LevelUploadDelegate *m_levelUploadDelegate; // r4 void (__fastcall *levelUploadFailed)(LevelUploadDelegate *__hidden, GJGameLevel *); // r8 GJGameLevel *LocalLevel; // r0 int v14; // r8 GJGameLevel *v15; // r0 GJGameLevel *v16; // r4 _DWORD v17[2]; // [sp+8h] [bp-8h] BYREF v17[0] = a3; v17[1] = a4; v4 = *a3; m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_776584((int)v17, *a3); cocos2d::CCDictionary::removeObjectForKey(m_friendReqAndUserBlocks); sub_774008(v17); v8 = atoi(v4); sub_776584((int)v17, "-1"); v9 = sub_3BE0D8((int)a2, (int)v17); result = (LevelUploadDelegate *)sub_774008(v17); if ( v9 ) { m_levelUploadDelegate = a1->m_levelUploadDelegate; if ( m_levelUploadDelegate ) { levelUploadFailed = m_levelUploadDelegate->levelUploadFailed; LocalLevel = GameLevelManager::getLocalLevel(a1, v8); return (LevelUploadDelegate *)((int (__fastcall *)(LevelUploadDelegate *, GJGameLevel *))levelUploadFailed)( m_levelUploadDelegate, LocalLevel); } } else { v14 = atoi(*a2); v15 = GameLevelManager::getLocalLevel(a1, v8); v16 = v15; if ( v15 ) { GJGameLevel::setLevelID(v15, v14); GJGameLevel::levelWasSubmitted(v16); } result = a1->m_levelUploadDelegate; if ( result ) return (LevelUploadDelegate *)((int (__fastcall *)(LevelUploadDelegate *, GJGameLevel *))result->levelUploadFinished)( result, v16); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source