mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
plugins/cheatfind: don't try to call a handler for the previous menu option
This commit is contained in:
parent
160c540b47
commit
ea0cdde148
@ -1049,6 +1049,7 @@ function cheatfind.startplugin()
|
|||||||
menu_is_showing = false
|
menu_is_showing = false
|
||||||
return false -- return false so menu will be popped off the stack
|
return false -- return false so menu will be popped off the stack
|
||||||
end
|
end
|
||||||
|
if index == 0 then return false end
|
||||||
return menu_func[index](event)
|
return menu_func[index](event)
|
||||||
end
|
end
|
||||||
emu.register_menu(menu_callback, menu_populate, _("Cheat Finder"))
|
emu.register_menu(menu_callback, menu_populate, _("Cheat Finder"))
|
||||||
|
Loading…
Reference in New Issue
Block a user