diff options
Diffstat (limited to 'plugins/cheat/conv_cheat.lua')
-rw-r--r-- | plugins/cheat/conv_cheat.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/cheat/conv_cheat.lua b/plugins/cheat/conv_cheat.lua new file mode 100644 index 00000000000..afc87bc55b6 --- /dev/null +++ b/plugins/cheat/conv_cheat.lua @@ -0,0 +1,11 @@ +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])))) |