plugins/autofire: Don't reload settings on a soft reset. (#15733)

Work around "start" callbacks actually being called on reset.
This commit is contained in:
Devin Acker authored and GitHub committed 2026-07-21 02:27:35 +10:00
1 parent 2494da599a
commit 2ddfe143b9
1 file changed
+4 -1
+4 -1
View File
@@ -24,6 +24,7 @@ function autofire.startplugin()
-- 'button' - reference to ioport_field
-- 'counter' - position in autofire cycle
local buttons = {}
local loaded = false
local input_manager
local menu_handler
@@ -63,8 +64,9 @@ function autofire.startplugin()
local function load_settings()
local loader = require('autofire/autofire_save')
if loader then
if loader and not loaded then
buttons = loader:load_settings()
loaded = true
end
input_manager = manager.machine.input
@@ -79,6 +81,7 @@ function autofire.startplugin()
menu_handler = nil
input_manager = nil
buttons = {}
loaded = false
end
local function menu_callback(index, event)