plugins/cheat: oops (nw)

This commit is contained in:
cracyc 2018-05-02 08:56:00 -05:00
parent 4badd94ad7
commit f5191c8605

View File

@ -54,9 +54,12 @@ local function xml_parse(data)
return xml_table return xml_table
end end
local cpu_spaces = {} function xml.conv_cheat(data)
local spaces, regions, output
data = xml_parse(data)
local cpu_spaces = {}
for tag, device in pairs(manager:machine().devices) do for tag, device in pairs(manager:machine().devices) do
local sp local sp
for name, space in pairs(device.spaces) do for name, space in pairs(device.spaces) do
if not sp then if not sp then
@ -65,11 +68,7 @@ for tag, device in pairs(manager:machine().devices) do
end end
sp[space.index] = space.name sp[space.index] = space.name
end end
end end
function xml.conv_cheat(data)
local spaces, regions, output
data = xml_parse(data)
local function convert_expr(data) local function convert_expr(data)
local write = false local write = false