summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-09 08:41:06 +0100
committerPixel <pixel@nobis-crew.org>2009-11-09 08:41:06 +0100
commitce452111b9ed5ee5ebc8c55d6abb44262f3f759d (patch)
tree4ca511035d15252d9965ac0ad58dd7c674afb0cc /src
parent60a8d1a8916487cb83c35bbb19f16ac42f48eb84 (diff)
Actually running this new script.
Diffstat (limited to 'src')
-rw-r--r--src/lua-interface.cpp9
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());