diff options
Diffstat (limited to 'plugins/cheat/init.lua')
-rw-r--r-- | plugins/cheat/init.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua index dedbea9b2f9..05242e96d0d 100644 --- a/plugins/cheat/init.lua +++ b/plugins/cheat/init.lua @@ -531,19 +531,16 @@ function cheat.startplugin() manager:machine():popmessage(newcheat.desc .. " added") end - function ce.dump(index) - cheat = cheats[index] - if cheat then - for k, v in pairs(cheat.cheat_env) do - emu.print_verbose(k, v) - end - end + function ce.get(index) + return cheats[index] end function ce.list() + local list = {} for num, cheat in pairs(cheats) do - emu.print_verbose(num, cheat.desc) + list[num] = cheat.desc end + return list end _G.ce = ce |