From 138d3f4d3d6e2aaf5ba34f89af15ef85ea074357 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 09:23:38 +0800 Subject: *misc --- Editor/EditorMain.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Editor/EditorMain.cpp') 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"); } -- cgit v1.1-26-g67d0