Files
libretro/bios/Other/mame/plugins/cheat/xml_to_json.lua
T
Abdessamad Derraz 74514930d0 fix: list MAME's hash, plugins and floppy sounds
The libretro core passes system/mame/{hash,plugins,samples} (retro_init.cpp:111-155). Software lists are required in mamemess, where softlists are on by default. The trees and the 19 floppy samples are collected from libretro/mame at the pin.
2026-10-20 10:37:33 +02:00

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}))