summaryrefslogtreecommitdiff
path: root/Editor/EditorMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Editor/EditorMain.cpp')
-rw-r--r--Editor/EditorMain.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp
index 7d7f07c..2336646 100644
--- a/Editor/EditorMain.cpp
+++ b/Editor/EditorMain.cpp
@@ -18,11 +18,6 @@ void ErrorHandle(cc8* msg)
log_error("[Lua] %s", msg);
}
-int BeforeMainLoop(lua_State* L)
-{
- return 0;
-}
-
void InitLuaState(LuaBind::VM& vm)
{
vm.Setup();
@@ -42,9 +37,6 @@ void InitLuaState(LuaBind::VM& vm)
Win::SetDllSearchDirectory(workingDir);
LuaBind::State state = vm.GetMainState();
- state.PushGlobalNamespace();
- state.RegisterMethod("BeforeMainLoop", BeforeMainLoop);
-
state.DoFile("./boot.lua");
}