From e13f699ee5f575198552d94ada1167305c82bb2f Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 17 Oct 2021 16:01:09 +0800 Subject: *misc --- Editor/EditorMain.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Editor/EditorMain.cpp') diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp index 9d77862..8fea1df 100644 --- a/Editor/EditorMain.cpp +++ b/Editor/EditorMain.cpp @@ -4,11 +4,9 @@ #include "Runtime/Scripting/LuaBind.h" #include "EditorManager.h" #include "Runtime/Graphics/OpenGL.h" +#include "Editor/Scripting/EditorScripting.h" -// EditorÈë¿Ú - - -static int MainMessageLoop() +static int MainLoop() { BOOL returnValue; MSG msg, lastMsg; @@ -50,6 +48,12 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) OpenLogTags(); WindowUtil::Init(); + if (!SetupGameLabEditorScripting()) + { + log_error("Can't setup scripting."); + return 0; + } + ContainnerWindow* wnd = new ContainnerWindow(); Vector2f min = Vector2f(100, 100); Vector2f max = Vector2f(700, 700); @@ -90,7 +94,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) guiWnd->DoPaint(); guiWnd2->DoPaint(); - MainMessageLoop(); + MainLoop(); return 0; } \ No newline at end of file -- cgit v1.1-26-g67d0