From 1b65f5f16406df32336f4b27a475f8dc2e7f29fc Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Mon, 20 Jun 2022 19:05:05 +0100 Subject: [PATCH] PAD/Core bugfix for #6472 Bugfix for https://github.com/PCSX2/pcsx2/issues/6472 which was introduced by hold turbo changes --- pcsx2/VMManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcsx2/VMManager.cpp b/pcsx2/VMManager.cpp index eff9302f05..1efdb12fe8 100644 --- a/pcsx2/VMManager.cpp +++ b/pcsx2/VMManager.cpp @@ -1711,6 +1711,14 @@ DEFINE_HOTKEY("ToggleFrameLimit", "System", "Toggle Frame Limit", [](bool presse } }) DEFINE_HOTKEY("ToggleTurbo", "System", "Toggle Turbo", [](bool pressed) { + if (!pressed) + { + VMManager::SetLimiterMode((EmuConfig.LimiterMode != LimiterModeType::Turbo) ? + LimiterModeType::Turbo : + LimiterModeType::Nominal); + } +}) +DEFINE_HOTKEY("HoldTurbo", "System", "Turbo (Hold)", [](bool pressed) { if (pressed && !s_limiter_mode_prior_to_hold_interaction.has_value()) { s_limiter_mode_prior_to_hold_interaction = VMManager::GetLimiterMode();