diff options
Diffstat (limited to 'Editor/EditorMain.cpp')
-rw-r--r-- | Editor/EditorMain.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp index 67ddc38..f8ee4ef 100644 --- a/Editor/EditorMain.cpp +++ b/Editor/EditorMain.cpp @@ -35,6 +35,11 @@ static int MainLoop() return (INT)msg.wParam; }
+void ErrorHandle(cc8* msg)
+{
+ log_error(std::string("[Lua] ") + msg);
+}
+
void InitLuaState()
{
LuaBind::VM vm;
@@ -45,7 +50,7 @@ void InitLuaState() log_error("Can't setup scripting.");
}
LuaBind::State state = vm.GetMainState();
- state.DoFile("./Scripts/EditorApplication.lua");
+ state.DoFile("./Scripts/EditorApplication.lua", ErrorHandle);
}
#ifdef GAMELAB_DEBUG
|