// // GameLevelManager::verifyLevelState from 0x10052ea70 to 0x10052eba1 (305 bytes) // // 1 xrefs: // > GameLevelManager::onGetLevelSaveDataCompleted @ 0x100526800 // // 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::verifyLevelState(GameLevelManager *a1, GJGameLevel *a2) { GameStatsManager *v2; // rax GameStatsManager *v3; // rax int v4; // eax int v5; // eax int v6; // eax v2 = GameStatsManager::sharedState(); if ( GameStatsManager::hasCompletedLevel(v2, a2) && a2->m_stars.random - a2->m_stars.seed >= 8 && a2->m_jumps.random - a2->m_jumps.seed <= 49 && a2->m_clicks.random - a2->m_clicks.seed <= 49 ) { v3 = GameStatsManager::sharedState(); GameStatsManager::uncompleteLevel(v3, a2); a2->m_normalPercent.value = 0; v4 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); a2->m_normalPercent.seed = v4; a2->m_normalPercent.random = v4; a2->m_orbCompletion.value = 0; v5 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); a2->m_orbCompletion.seed = v5; a2->m_orbCompletion.random = v5; a2->m_newNormalPercent2.value = 0; v6 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); a2->m_newNormalPercent2.seed = v6; a2->m_newNormalPercent2.random = v6; a2->m_bestTime = 0; a2->m_bestPoints = 0; a2->m_isCompletionLegitimate = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source