mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
plugins/cheat: fix getting arbitrary screen
This commit is contained in:
parent
e1ba0999e9
commit
6ac210c6be
@ -524,7 +524,8 @@ function cheat.startplugin()
|
||||
local scr = manager.machine.screens[screen]
|
||||
if not scr then
|
||||
local tag
|
||||
tag, scr = next(manager.machine.screens) -- get any screen
|
||||
local nxt, coll = manager.machine.screens:pairs()
|
||||
tag, scr = nxt(coll) -- get any screen
|
||||
end
|
||||
cheat.cheat_env[name] = scr
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user