diff options
author | 2016-04-24 12:01:30 -0500 | |
---|---|---|
committer | 2016-04-24 12:01:30 -0500 | |
commit | 29f51e85db4572febadf40956e2808f5444d2135 (patch) | |
tree | 49d0bd974facfa15b9d9bd9e98895bef13391b54 /plugins/cheat/init.lua | |
parent | af1756e5088b2f7e298d1ebeaf018993903da0c7 (diff) |
plugins/cheat*: various changes (nw)
Diffstat (limited to 'plugins/cheat/init.lua')
-rw-r--r-- | plugins/cheat/init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua index 5b1ac42a1f7..e3e9740692e 100644 --- a/plugins/cheat/init.lua +++ b/plugins/cheat/init.lua @@ -474,6 +474,10 @@ function cheat.startplugin() stop = false start_time = emu.time() cheats = load_cheats() + local json = require("json") + local file = io.open(manager:machine():options().entries.cheatpath:value() .. "/output.json", "w") + file:write(json.stringify(cheats)) + file:close() for num, cheat in pairs(cheats) do parse_cheat(cheat) end |