aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/lua-script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/lua-script.cpp')
-rw-r--r--engines/hdb/lua-script.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index 55ad724c48..0d0e36b2fc 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -53,6 +53,15 @@ LuaScript::~LuaScript() {
return true;
}*/
+/*
+ Called from Lua, this will pop into the menu
+*/
+
+static int gotoMenu(lua_State *L) {
+ g_hdb->changeGameState();
+ return 0;
+}
+
struct VarInit {
char *realName;
char *luaName;
@@ -73,6 +82,7 @@ struct FuncInit {
char *luaName;
int (*function) (lua_State *L);
} luaFuncs[] = {
+ {"GotoMenu", gotoMenu},
{NULL, NULL}
};