// // GameLevelManager::verifyLevelState from 0x100093900 to 0x1000939e8 (232 bytes) // // 1 xrefs: // > GameLevelManager::onGetLevelSaveDataCompleted @ 0x10008ee94 // // 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 *v3; // x0 GameStatsManager *v4; // x0 int v5; // w8 int v6; // w8 float v7; // s0 v3 = GameStatsManager::sharedState(); if ( GameStatsManager::hasCompletedLevel(v3, 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 ) { v4 = GameStatsManager::sharedState(); GameStatsManager::uncompleteLevel(v4, a2); a2->m_normalPercent.value = 0; v5 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); a2->m_normalPercent.seed = v5; a2->m_normalPercent.random = v5; a2->m_orbCompletion.value = 0; v6 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); a2->m_orbCompletion.seed = v6; a2->m_orbCompletion.random = v6; a2->m_newNormalPercent2.value = 0; v7 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; a2->m_newNormalPercent2.seed = (int)v7; a2->m_newNormalPercent2.random = (int)v7; a2->m_bestTime = 0; a2->m_bestPoints = 0; a2->m_isCompletionLegitimate = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source