mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
bugfix: use persisted autofire interval upon reload
This commit is contained in:
parent
004ec35252
commit
22f518792d
@ -3507,7 +3507,8 @@ class EmulatorJS {
|
||||
if (control && typeof control.autoFireInterval === "number") {
|
||||
return control.autoFireInterval;
|
||||
}
|
||||
return this.defaultAutoFireInterval;
|
||||
const settingValue = this.getSettingValue("autofireInterval");
|
||||
return settingValue ? parseInt(settingValue) : this.defaultAutoFireInterval;
|
||||
}
|
||||
isAutofireEnabled(playerIndex, buttonIndex) {
|
||||
const control = this.controls[playerIndex] && this.controls[playerIndex][buttonIndex];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user