mirror of
https://github.com/holub/mame
synced 2025-06-30 07:58:56 +03:00
plugins/cheat: oops (nw)
This commit is contained in:
parent
4badd94ad7
commit
f5191c8605
@ -54,22 +54,21 @@ local function xml_parse(data)
|
|||||||
return xml_table
|
return xml_table
|
||||||
end
|
end
|
||||||
|
|
||||||
local cpu_spaces = {}
|
|
||||||
|
|
||||||
for tag, device in pairs(manager:machine().devices) do
|
|
||||||
local sp
|
|
||||||
for name, space in pairs(device.spaces) do
|
|
||||||
if not sp then
|
|
||||||
sp = {}
|
|
||||||
cpu_spaces[tag] = sp
|
|
||||||
end
|
|
||||||
sp[space.index] = space.name
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function xml.conv_cheat(data)
|
function xml.conv_cheat(data)
|
||||||
local spaces, regions, output
|
local spaces, regions, output
|
||||||
data = xml_parse(data)
|
data = xml_parse(data)
|
||||||
|
local cpu_spaces = {}
|
||||||
|
|
||||||
|
for tag, device in pairs(manager:machine().devices) do
|
||||||
|
local sp
|
||||||
|
for name, space in pairs(device.spaces) do
|
||||||
|
if not sp then
|
||||||
|
sp = {}
|
||||||
|
cpu_spaces[tag] = sp
|
||||||
|
end
|
||||||
|
sp[space.index] = space.name
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local function convert_expr(data)
|
local function convert_expr(data)
|
||||||
local write = false
|
local write = false
|
||||||
|
Loading…
Reference in New Issue
Block a user