diff options
Diffstat (limited to 'src/lua-interface.cpp')
-rw-r--r-- | src/lua-interface.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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()); |