diff options
author | chai <chaifix@163.com> | 2021-11-08 09:23:38 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-08 09:23:38 +0800 |
commit | 138d3f4d3d6e2aaf5ba34f89af15ef85ea074357 (patch) | |
tree | 31ca6e8ea6d2e960e8d35f801bd92555942822e2 /Editor/EditorMain.cpp | |
parent | efce5b6bd5c9d4f8214a71e0f7a7c35751710a4c (diff) |
*misc
Diffstat (limited to 'Editor/EditorMain.cpp')
-rw-r--r-- | Editor/EditorMain.cpp | 8 |
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");
}
|