summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheatfind
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-04-28 21:17:09 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-04-28 21:17:09 -0500
commit6bbd290d315b20be75fa52465803d7e76466736f (patch)
tree99b42c8325fb024d5bf2cbe9d51eda8f9dc6cec1 /plugins/cheatfind
parent7e394b5dbe91b30c689782908a3aeb3619fed988 (diff)
plugins/cheat*: indent the output (nw)
Diffstat (limited to 'plugins/cheatfind')
-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 a14b1504765..dd9e358dbe5 100644
--- a/plugins/cheatfind/init.lua
+++ b/plugins/cheatfind/init.lua
@@ -518,7 +518,7 @@ function cheatfind.startplugin()
local filename = string.format("%s/%s_%08X_cheat", manager:machine():options().entries.cheatpath:value(), emu.romname(), match.addr)
local json = require("json")
local file = io.open(filename .. ".json", "w")
- file:write(json.stringify({[1] = cheat}))
+ file:write(json.stringify({[1] = cheat}, {indent = true}))
file:close()
file = io.open(filename .. ".xml", "w")
file:write(xmlcheat)