mirror of
https://github.com/libretro/mame2016-libretro.git
synced 2024-11-27 02:30:46 +00:00
12 lines
263 B
Lua
12 lines
263 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}))
|