mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-24 21:40:10 +00:00
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))
|
if (IsHotkey(HK_DECREASE_EMULATION_SPEED))
|
||||||
{
|
{
|
||||||
auto speed = Config::Get(Config::MAIN_EMULATION_SPEED) - 0.1;
|
auto speed = Config::Get(Config::MAIN_EMULATION_SPEED) - 0.1;
|
||||||
speed = (speed <= 0 || (speed >= 0.95 && speed <= 1.05)) ? 1.0 : speed;
|
if (speed > 0)
|
||||||
Config::SetCurrent(Config::MAIN_EMULATION_SPEED, speed);
|
{
|
||||||
|
speed = (speed >= 0.95 && speed <= 1.05) ? 1.0 : speed;
|
||||||
|
Config::SetCurrent(Config::MAIN_EMULATION_SPEED, speed);
|
||||||
|
}
|
||||||
ShowEmulationSpeed();
|
ShowEmulationSpeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user