diff options
author | cracyc <cracyc@users.noreply.github.com> | 2016-04-16 09:36:07 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2016-04-16 09:36:22 -0500 |
commit | 37718e8602904d51f9132be80e2977f27cd956f5 (patch) | |
tree | 8c942c74bd27c53a4456d54e6be6d310b1e84301 /plugins | |
parent | 454db9d5d30a2688f355716507bf5bc43240b8f2 (diff) |
plugins/cheatfind: write found cheats (nw)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/cheatfind/init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua index 49195ed060c..c72fc95edac 100644 --- a/plugins/cheatfind/init.lua +++ b/plugins/cheatfind/init.lua @@ -484,9 +484,11 @@ function cheatfind.startplugin() _G.ce.inject(cheat) end else - + local json = require("json") + local file = io.open(string.format("%s_%08x_cheat.json", emu.romname(), match.addr), "w") + file:write(json.stringify(cheat)) + file:close() end - end end devsel = devcur |