diff options
author | 2019-11-20 21:56:36 -0600 | |
---|---|---|
committer | 2019-11-20 21:56:36 -0600 | |
commit | 52bc1df46e17f0412196f16e44ccb2fcfe949ca5 (patch) | |
tree | f3992f2518128744b687708da15c874487d58126 /plugins/cheat/init.lua | |
parent | e9d18ac34bd74acbedfd9c17e480096ccf513e5d (diff) |
plugins/cheat: don't clear error message (nw)
Diffstat (limited to 'plugins/cheat/init.lua')
-rw-r--r-- | plugins/cheat/init.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua index 35378f1a43e..da1544a58d7 100644 --- a/plugins/cheat/init.lua +++ b/plugins/cheat/init.lua @@ -536,10 +536,12 @@ function cheat.startplugin() manager:machine():video():frame_update(true) input:seq_poll_start("switch") local time = os.clock() + local clearmsg = true while (not input:seq_poll()) and (os.clock() < time + 1) do if input:seq_poll_modified() then if not input:seq_poll_valid() then manager:machine():popmessage(_("Invalid sequence entered")) + clearmsg = false break end manager:machine():popmessage(input:seq_name(input:seq_poll_sequence())) @@ -551,7 +553,9 @@ function cheat.startplugin() else cheat.hotkeys = nil end - manager:machine():popmessage() + if clearmsg then + manager:machine():popmessage() + end manager:machine():video():frame_update(true) end |