mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
12 lines
252 B
Lua
12 lines
252 B
Lua
xml = require("cheat_xml")
|
|
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}))
|