mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
plugins/cheat: don't turn off unless on (nw)
This commit is contained in:
parent
f08627ebdc
commit
200fc9859a
@ -329,7 +329,7 @@ function cheat.startplugin()
|
||||
index = index - #cheats
|
||||
if index == 2 then
|
||||
for num, cheat in pairs(cheats) do
|
||||
if cheat.script and cheat.script.off then
|
||||
if cheat.enabled and cheat.script.off then
|
||||
cheat.script.off()
|
||||
end
|
||||
cheat.enabled = false
|
||||
@ -340,7 +340,7 @@ function cheat.startplugin()
|
||||
end
|
||||
elseif index == 3 then
|
||||
for num, cheat in pairs(cheats) do
|
||||
if cheat.script and cheat.script.off then
|
||||
if cheat.enabled and cheat.script.off then
|
||||
cheat.script.off()
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user