mame/plugins/cheat/conv_cheat.lua
2016-08-30 15:53:27 +10:00

11 lines
251 B
Lua

xml = require("xml_conv")
json = dofile("../json/init.lua")
function readAll(file)
local f = io.open(file, "rb")
local content = f:read("*all")
f:close()
return content
end
print(json.stringify(xml.conv_cheat(readAll(arg[1])), {indent = true}))