mirror of
https://github.com/a2-4am/passport-test-suite.git
synced 2024-06-14 00:29:29 +00:00
update for MAME 227 Lua API changes
This commit is contained in:
parent
52b03d7d09
commit
86f38194a8
12
passport.lua
12
passport.lua
|
@ -25,7 +25,7 @@ function striphibitstring(a)
|
||||||
return b
|
return b
|
||||||
end
|
end
|
||||||
|
|
||||||
mainmem = emu.item(manager:machine().devices[":ram"].items["0/m_pointer"]) -- always gets main memory
|
mainmem = emu.item(manager.machine.devices[":ram"].items["0/m_pointer"]) -- always gets main memory
|
||||||
function getscreenline(i)
|
function getscreenline(i)
|
||||||
return striphibitstring(mainmem:read_block(textcalc(i), 40))
|
return striphibitstring(mainmem:read_block(textcalc(i), 40))
|
||||||
end
|
end
|
||||||
|
@ -58,7 +58,7 @@ function driver()
|
||||||
if getscreen():match("rack disk") then
|
if getscreen():match("rack disk") then
|
||||||
fileindex = fileindex + 1
|
fileindex = fileindex + 1
|
||||||
if fileindex > #infiles then
|
if fileindex > #infiles then
|
||||||
manager:machine():exit()
|
manager.machine:exit()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
dsk, subcount = infiles[fileindex]:gsub(".woz$", ".dsk")
|
dsk, subcount = infiles[fileindex]:gsub(".woz$", ".dsk")
|
||||||
|
@ -68,8 +68,8 @@ function driver()
|
||||||
end
|
end
|
||||||
print(infiles[fileindex])
|
print(infiles[fileindex])
|
||||||
createblankdsk(dsk)
|
createblankdsk(dsk)
|
||||||
manager:machine().images["flop1"]:load(infiles[fileindex])
|
manager.machine.images[":sl6:diskiing:0:525"]:load(infiles[fileindex])
|
||||||
manager:machine().images["flop2"]:load(dsk)
|
manager.machine.images[":sl6:diskiing:1:525"]:load(dsk)
|
||||||
emu.keypost("C")
|
emu.keypost("C")
|
||||||
state = "waiting_for_process"
|
state = "waiting_for_process"
|
||||||
end
|
end
|
||||||
|
@ -84,6 +84,6 @@ function driver()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
manager:machine():video().frameskip = 10
|
;manager.machine.video.frameskip = 10
|
||||||
manager:machine():video().throttled = false
|
;manager.machine.video.throttled = false
|
||||||
emu.register_frame_done(driver)
|
emu.register_frame_done(driver)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user