bugfix: use persisted autofire interval upon reload

This commit is contained in:
z 2026-01-18 12:42:29 +13:00
parent 004ec35252
commit 22f518792d

View File

@ -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];