diff options
| author | sowens99 <seanowens@comcast.net> | 2023-09-27 21:40:16 -0400 |
|---|---|---|
| committer | sowens99 <seanowens@comcast.net> | 2023-09-27 21:40:16 -0400 |
| commit | eac318a1d832948769c4b5fc4b4665a3f4c8a70e (patch) | |
| tree | 3f4ae33cf058f1efa90bc9c9258c41ee30d4ed54 /Source/Core | |
| parent | 467c7435d1aa3794667134c4a1b04aea8ad4d180 (diff) | |
DolphinQt: Fix decrease emulation speed hotkey rollover
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/HotkeyScheduler.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/HotkeyScheduler.cpp b/Source/Core/DolphinQt/HotkeyScheduler.cpp index 59f8db8433..05b38a367f 100644 --- a/Source/Core/DolphinQt/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt/HotkeyScheduler.cpp @@ -470,8 +470,11 @@ void HotkeyScheduler::Run() if (IsHotkey(HK_DECREASE_EMULATION_SPEED)) { auto speed = Config::Get(Config::MAIN_EMULATION_SPEED) - 0.1; - speed = (speed <= 0 || (speed >= 0.95 && speed <= 1.05)) ? 1.0 : speed; - Config::SetCurrent(Config::MAIN_EMULATION_SPEED, speed); + if (speed > 0) + { + speed = (speed >= 0.95 && speed <= 1.05) ? 1.0 : speed; + Config::SetCurrent(Config::MAIN_EMULATION_SPEED, speed); + } ShowEmulationSpeed(); } |
