summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/luaengine.cpp
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2017-09-03 15:08:08 -0500
committer Vas Crabb <cuavas@users.noreply.github.com>2017-09-04 10:12:21 +1000
commit7e75ba4bfa0c7bd69fd3793fc920919d5cd8c381 (patch)
treebdede2f2606dfd81fd0c647e6503188f8bdd4e25 /src/frontend/mame/luaengine.cpp
parent53809fca955b17df36c7f737ded0a554f5c7a7a5 (diff)
luaengine: translation support [Carl]
Diffstat (limited to 'src/frontend/mame/luaengine.cpp')
-rw-r--r--src/frontend/mame/luaengine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index b2ea5e017d2..f2398bc57f7 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -746,6 +746,7 @@ void lua_engine::initialize()
* emu.print_info(str) -- output to stderr at info level
* emu.print_debug(str) -- output to stderr at debug level
* emu.driver_find(driver) -- find and return game_driver for driver
+ * emu.wait(len) -- wait from len within coroutine
*/
sol::table emu = sol().create_named_table("emu");
emu["app_name"] = &emulator_info::get_appname_lower;
@@ -806,6 +807,7 @@ void lua_engine::initialize()
engine->machine().scheduler().timer_set(attotime::from_double(lua_tonumber(L, 1)), timer_expired_delegate(FUNC(lua_engine::resume), engine), 0, L);
return lua_yield(L, 0);
});
+ emu["lang_translate"] = &lang_translate;
/*
* emu.file([opt] searchpath, flags) - flags can be as in osdcore "OPEN_FLAG_*" or lua style with 'rwc' with addtional c for create *and truncate* (be careful)