mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-06 15:09:58 +01:00
Fix FRAME_LIMIT int not being reset on exit if the turbo hotkey is spammed
This commit is contained in:
parent
bf4eef8e58
commit
14413d896f
@ -26,7 +26,6 @@ class HotkeyFunctions (
|
||||
|
||||
fun toggleTurboSpeed() {
|
||||
if (isTurboSpeedEnabled) {
|
||||
normalSpeed = IntSetting.FRAME_LIMIT.int
|
||||
IntSetting.FRAME_LIMIT.int = IntSetting.TURBO_SPEED.int
|
||||
} else {
|
||||
IntSetting.FRAME_LIMIT.int = normalSpeed
|
||||
@ -41,12 +40,10 @@ class HotkeyFunctions (
|
||||
}
|
||||
|
||||
fun resetTurboSpeed() {
|
||||
if (isTurboSpeedEnabled) {
|
||||
isTurboSpeedEnabled = false
|
||||
IntSetting.FRAME_LIMIT.int = normalSpeed
|
||||
isTurboSpeedEnabled = false
|
||||
IntSetting.FRAME_LIMIT.int = normalSpeed
|
||||
|
||||
settings.saveSetting(IntSetting.FRAME_LIMIT, SettingsFile.FILE_NAME_CONFIG)
|
||||
NativeLibrary.reloadSettings()
|
||||
}
|
||||
settings.saveSetting(IntSetting.FRAME_LIMIT, SettingsFile.FILE_NAME_CONFIG)
|
||||
NativeLibrary.reloadSettings()
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user