From 37718e8602904d51f9132be80e2977f27cd956f5 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sat, 16 Apr 2016 09:36:07 -0500 Subject: [PATCH] plugins/cheatfind: write found cheats (nw) --- plugins/cheatfind/init.lua | 6 ++++-- 1 file 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