Previous 199869 Revisions Next

r34341 Sunday 11th January, 2015 at 09:19:39 UTC by Luca Bruno
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>
[src/emu]luaengine.c

trunk/src/emu/luaengine.c
r242852r242853
827827            .addData ("manufacturer", &game_driver::manufacturer)
828828         .endClass ()
829829         .beginClass <device_t> ("device")
830            .addFunction("name", &device_t::tag)
830            .addFunction ("name", &device_t::name)
831            .addFunction ("shortname", &device_t::shortname)
832            .addFunction ("tag", &device_t::tag)
831833            .addProperty <luabridge::LuaRef, void> ("spaces", &lua_engine::l_dev_get_memspaces)
832834         .endClass()
833835         .beginClass <lua_addr_space> ("lua_addr_space")
r242852r242853
850852         .endClass()
851853         .deriveClass <screen_device, lua_screen> ("screen_dev")
852854            .addFunction ("name", &screen_device::name)
855            .addFunction ("shortname", &screen_device::shortname)
856            .addFunction ("tag", &screen_device::tag)
853857            .addFunction ("height", &screen_device::height)
854858            .addFunction ("width", &screen_device::width)
855859         .endClass()


Previous 199869 Revisions Next


© 1997-2024 The MAME Team