Skip to content

Commit

Permalink
Cheats: Only apply overclock when it is not already enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 30, 2024
1 parent 2043128 commit 814f22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 814f22f

Please sign in to comment.