mirror of
https://github.com/holub/mame
synced 2025-05-30 17:41:47 +03:00
luaengine: fix name/tag confusion
Don't mix names and tags when exposing devices to LUA. While at it, also provide the shortname. Signed-off-by: Luca Bruno <lucab@debian.org>
This commit is contained in:
parent
e41f7ec65e
commit
217252dee7
@ -827,7 +827,9 @@ void lua_engine::initialize()
|
||||
.addData ("manufacturer", &game_driver::manufacturer)
|
||||
.endClass ()
|
||||
.beginClass <device_t> ("device")
|
||||
.addFunction("name", &device_t::tag)
|
||||
.addFunction ("name", &device_t::name)
|
||||
.addFunction ("shortname", &device_t::shortname)
|
||||
.addFunction ("tag", &device_t::tag)
|
||||
.addProperty <luabridge::LuaRef, void> ("spaces", &lua_engine::l_dev_get_memspaces)
|
||||
.endClass()
|
||||
.beginClass <lua_addr_space> ("lua_addr_space")
|
||||
@ -850,6 +852,8 @@ void lua_engine::initialize()
|
||||
.endClass()
|
||||
.deriveClass <screen_device, lua_screen> ("screen_dev")
|
||||
.addFunction ("name", &screen_device::name)
|
||||
.addFunction ("shortname", &screen_device::shortname)
|
||||
.addFunction ("tag", &screen_device::tag)
|
||||
.addFunction ("height", &screen_device::height)
|
||||
.addFunction ("width", &screen_device::width)
|
||||
.endClass()
|
||||
|
Loading…
Reference in New Issue
Block a user