summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/luaengine.cpp
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-03-27 19:50:02 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-03-27 19:52:35 -0500
commit1e95b3b4591c389a2ce72b9903a34366a1e0a9a3 (patch)
tree9e46c8a8453ced08bf758ae9f1e926616d7154ed /src/emu/luaengine.cpp
parente424f4305d0987125575cb72d882b5d7a883faec (diff)
luaengine: add software name getter (nw)
hiscore: add support for softlist rom hiscores (nw)
Diffstat (limited to 'src/emu/luaengine.cpp')
-rw-r--r--src/emu/luaengine.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/emu/luaengine.cpp b/src/emu/luaengine.cpp
index 0cf57ef61c0..fbd2e64fc76 100644
--- a/src/emu/luaengine.cpp
+++ b/src/emu/luaengine.cpp
@@ -245,6 +245,16 @@ int lua_engine::l_emu_romname(lua_State *L)
}
//-------------------------------------------------
+// emu_softname - returns softlist name
+//-------------------------------------------------
+
+int lua_engine::l_emu_softname(lua_State *L)
+{
+ lua_pushstring(L, luaThis->machine().options().software_name());
+ return 1;
+}
+
+//-------------------------------------------------
// emu_pause/emu_unpause - pause/unpause game
//-------------------------------------------------
@@ -1418,6 +1428,7 @@ void lua_engine::initialize()
.addCFunction ("app_version", l_emu_app_version )
.addCFunction ("gamename", l_emu_gamename )
.addCFunction ("romname", l_emu_romname )
+ .addCFunction ("softname", l_emu_softname )
.addCFunction ("keypost", l_emu_keypost )
.addCFunction ("hook_output", l_emu_hook_output )
.addCFunction ("sethook", l_emu_set_hook )