Cheats: Only apply overclock when it is not already enabled

This commit is contained in:
Stenzek 2024-10-29 22:31:00 +10:00
parent 2043128f98
commit 814f22f58b
No known key found for this signature in database

View File

@ -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());