summaryrefslogtreecommitdiff
path: root/Editor/EditorMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Editor/EditorMain.cpp')
-rw-r--r--Editor/EditorMain.cpp14
1 files changed, 9 insertions, 5 deletions
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