mirror of
https://github.com/libretro/mame.git
synced 2026-11-07 04:16:06 -10:00
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:
1 parent
2494da599a
commit
2ddfe143b9
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user