mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
plugins/cheatfind: write found cheats (nw)
This commit is contained in:
parent
454db9d5d3
commit
37718e8602
@ -484,9 +484,11 @@ function cheatfind.startplugin()
|
|||||||
_G.ce.inject(cheat)
|
_G.ce.inject(cheat)
|
||||||
end
|
end
|
||||||
else
|
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
|
end
|
||||||
end
|
end
|
||||||
devsel = devcur
|
devsel = devcur
|
||||||
|
Loading…
Reference in New Issue
Block a user