summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-04-23 11:13:49 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-04-23 11:13:49 -0500
commitd80b977719978293b5f22f3bea4454fcf976f36f (patch)
treea4f2267e167b490fc0748f637ca6b952df851e4b /plugins
parent21c89e625858cc8c902a0cb93a1da0721f44b7f6 (diff)
plugins/cheatfind: fix saved cheats (nw)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cheatfind/init.lua2
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