From ce452111b9ed5ee5ebc8c55d6abb44262f3f759d Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 9 Nov 2009 08:41:06 +0100 Subject: Actually running this new script. --- src/lua-interface.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lua-interface.cpp') diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp index 5b9ad5e..1cf320d 100644 --- a/src/lua-interface.cpp +++ b/src/lua-interface.cpp @@ -979,6 +979,15 @@ virtual int startup() throw (GeneralException) { try { L->load(&built); + L->push("lua_interface_light_main"); + L->gettable("LUA_GLOBALSINDEX"); + L->call(0, 1); + interactive = L->toboolean(); + L->pop(); + if (interactive) { + Lualua_interface::pushstatics(L); + autoload_exports(L); + } } catch (GeneralException e) { printm(M_WARNING, "There was an error loading built-in lua-interface-light.lua: %s\n", e.GetMsg()); -- cgit v1.2.3