From da3a6b52345f2891554776640f39d97f386d25fb Mon Sep 17 00:00:00 2001 From: oddMLan Date: Mon, 1 Jul 2024 21:28:22 -0700 Subject: [PATCH] Remove Overclock limit --- .../N64System/Enhancement/Enhancement.cpp | 4 ---- .../Project64-core/Settings/GameSettings.cpp | 18 ++---------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/Source/Project64-core/N64System/Enhancement/Enhancement.cpp b/Source/Project64-core/N64System/Enhancement/Enhancement.cpp index 40bc30638..c035befe9 100644 --- a/Source/Project64-core/N64System/Enhancement/Enhancement.cpp +++ b/Source/Project64-core/N64System/Enhancement/Enhancement.cpp @@ -363,10 +363,6 @@ void CEnhancement::SetOverClock(bool OverClock, uint32_t OverClockModifier) { m_OverClockModifier = 1; } - if (m_OverClockModifier > 20) - { - m_OverClockModifier = 20; - } } void CEnhancement::CheckValid(void) diff --git a/Source/Project64-core/Settings/GameSettings.cpp b/Source/Project64-core/Settings/GameSettings.cpp index 122201434..55e97548d 100644 --- a/Source/Project64-core/Settings/GameSettings.cpp +++ b/Source/Project64-core/Settings/GameSettings.cpp @@ -95,14 +95,7 @@ void CGameSettings::RefreshGameSettings() { m_CountPerOp = 2; } - if (m_OverClockModifier < 1) - { - m_OverClockModifier = 1; - } - if (m_OverClockModifier > 20) - { - m_OverClockModifier = 20; - } + if (m_OverClockModifier < 1) { m_OverClockModifier = 1; } m_DiskSeekTimingType = (DISK_SEEK_TYPE)g_Settings->LoadDword(Game_DiskSeekTiming); m_UnalignedDMA = g_Settings->LoadBool(Game_UnalignedDMA); RefreshSyncToAudio(); @@ -133,14 +126,7 @@ void CGameSettings::SetOverClockModifier(bool EnhancmentOverClock, uint32_t Enha { m_OverClockModifier = g_Settings->LoadDword(Game_OverClockModifier); } - if (m_OverClockModifier < 1) - { - m_OverClockModifier = 1; - } - if (m_OverClockModifier > 20) - { - m_OverClockModifier = 20; - } + if (m_OverClockModifier < 1) { m_OverClockModifier = 1; } } void CGameSettings::EnableDiskChanged(void *)