I was fiddling with lua and was surprised that the good old
didn't work.
The new way is just
It's a good change, it just threw me for a loop. manager:machine() had gotten so hardwired now 8-)
function printt(t) for a,b in pairs(t) do print(a,b) end end
printt(manager.machine.devices)
Before you could do
[MAME]> print(manager)
sol.mame_machine_manager*: 0x562753a745b8
[MAME]> print(manager:machine())
sol.running_machine*: 0x56275d580f78
[MAME]> print(manager:machine().devices)
table: 0x56275ed75fe0
[MAME]>
and now when you ask it to print(manager.machine) it says something different:
[
MAME]> print(manager)
sol.mame_machine_manager*: 0x55d389068d68
[MAME]> print(manager.machine)
Attempt to register save state entry after state registration is closed!
Module timer tag natural_keyboard::timer name m_param
Ignoring MAME exception: Attempt to register save state entry after state registration is closed!
Module timer tag natural_keyboard::timer name m_param
error: Attempt to register save state entry after state registration is closed!
Module timer tag natural_keyboard::timer name m_param
[MAME]> print(manager.machine.devices)
sol.lua_engine::devenum<device_enumerator>: 0x55d3959b9818