From 814f22f58b2d5e0d9eeb5e22722a9935fec5bfd3 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 29 Oct 2024 22:31:00 +1000 Subject: [PATCH] Cheats: Only apply overclock when it is not already enabled --- src/core/cheats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cheats.cpp b/src/core/cheats.cpp index 9ee596c34..307f6222a 100644 --- a/src/core/cheats.cpp +++ b/src/core/cheats.cpp @@ -268,7 +268,7 @@ void Cheats::CheatCode::ApplySettingOverrides() Settings::GetDisplayAspectRatioName(m_metadata.override_aspect_ratio.value()), GetName()); g_settings.display_aspect_ratio = m_metadata.override_aspect_ratio.value(); } - if (m_metadata.override_cpu_overclock.has_value()) + if (m_metadata.override_cpu_overclock.has_value() && !g_settings.cpu_overclock_active) { DEV_LOG("Setting CPU overclock to {} from {} patch.", m_metadata.override_cpu_overclock.value(), GetName()); g_settings.SetCPUOverclockPercent(m_metadata.override_cpu_overclock.value());