Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12207 from malleoz/decrease_emulation_speed_rollo…
…ver_fix

DolphinQt: Fix decrease emulation speed hotkey rollover
  • Loading branch information
AdmiralCurtiss committed Sep 28, 2023
2 parents 908f901 + eac318a commit a310b32
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/Core/DolphinQt/HotkeyScheduler.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit a310b32

Please sign in to comment.