diff options
| author | 2016-04-23 11:13:49 -0500 | |
|---|---|---|
| committer | 2016-04-23 11:13:49 -0500 | |
| commit | d80b977719978293b5f22f3bea4454fcf976f36f (patch) | |
| tree | a4f2267e167b490fc0748f637ca6b952df851e4b /plugins | |
| parent | 21c89e625858cc8c902a0cb93a1da0721f44b7f6 (diff) | |
plugins/cheatfind: fix saved cheats (nw)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/cheatfind/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua index 498ffce144f..2fe4072e668 100644 --- a/plugins/cheatfind/init.lua +++ b/plugins/cheatfind/init.lua @@ -492,7 +492,7 @@ function cheatfind.startplugin() local filename = string.format("%s_%08x_cheat.json", emu.romname(), match.addr) local json = require("json") local file = io.open(filename, "w") - file:write(json.stringify(cheat)) + file:write(json.stringify({[1] = cheat})) file:close() manager:machine():popmessage("Cheat written to " .. filename) else |
