mirror of
https://github.com/holub/mame
synced 2025-06-26 22:29:10 +03:00
luaengine: fix auto (nw)
This commit is contained in:
parent
011dbbe713
commit
a4704047d5
@ -663,7 +663,7 @@ luabridge::LuaRef lua_engine::l_ioport_get_ports(const ioport_manager *m)
|
|||||||
luabridge::LuaRef port_table = luabridge::LuaRef::newTable(L);
|
luabridge::LuaRef port_table = luabridge::LuaRef::newTable(L);
|
||||||
|
|
||||||
for (auto &port : im->ports()) {
|
for (auto &port : im->ports()) {
|
||||||
port_table[port.second->tag()] = &port;
|
port_table[port.second->tag()] = port.second.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
return port_table;
|
return port_table;
|
||||||
@ -762,7 +762,7 @@ luabridge::LuaRef lua_engine::l_dev_get_states(const device_t *d)
|
|||||||
for (auto &s : dev->state().state_entries())
|
for (auto &s : dev->state().state_entries())
|
||||||
{
|
{
|
||||||
// XXX: refrain from exporting non-visible entries?
|
// XXX: refrain from exporting non-visible entries?
|
||||||
st_table[s->symbol()] = &s;
|
st_table[s->symbol()] = s.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
return st_table;
|
return st_table;
|
||||||
|
Loading…
Reference in New Issue
Block a user