DolphinQt: Fix decrease emulation speed hotkey rollover
This commit is contained in:
parent
467c7435d1
commit
eac318a1d8
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue