mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-22 19:32:48 +00:00
expand bios collection, retrobat at 93% coverage
This commit is contained in:
parent
851a14e49a
commit
e6ea0484a8
3946 changed files with 8119839 additions and 2930936 deletions
11
bios/Arcade/MAME/plugins/cheat/xml_to_json.lua
Normal file
11
bios/Arcade/MAME/plugins/cheat/xml_to_json.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue