Browse Source

Fix for command line arguments

rsredsq 10 years ago
parent
commit
549dfeb78c

+ 2 - 2
Script/AtomicEditor/ui/Shortcuts.ts

@@ -29,7 +29,7 @@ class Shortcuts extends Atomic.ScriptObject {
 
         var playerWindow = Preferences.getInstance().playerWindow;
         if (playerWindow) {
-            var args = "--windowposx " + playerWindow.x + " --windowposy " + playerWindow.y + " --windowwidth " + playerWindow.width + " --windowheight " + playerWindow.height + " --resizable ";
+            var args = "--windowposx " + playerWindow.x + " --windowposy " + playerWindow.y + " --windowwidth " + playerWindow.width + " --windowheight " + playerWindow.height + " --resizable";
             Atomic.editorMode.playProject(args, false);
         } else {
             Atomic.editorMode.playProject("", false);
@@ -42,7 +42,7 @@ class Shortcuts extends Atomic.ScriptObject {
 
         var playerWindow = Preferences.getInstance().playerWindow;
         if (playerWindow) {
-            var args = "--windowposx " + playerWindow.x + " --windowposy " + playerWindow.y + " --windowwidth " + playerWindow.width + " --windowheight " + playerWindow.height + " --resizable ";
+            var args = "--windowposx " + playerWindow.x + " --windowposy " + playerWindow.y + " --windowwidth " + playerWindow.width + " --windowheight " + playerWindow.height + " --resizable";
             Atomic.editorMode.playProject(args, true);
         } else {
             Atomic.editorMode.playProject("", true);

+ 1 - 1
Source/AtomicEditor/EditorMode/AEEditorMode.cpp

@@ -131,7 +131,7 @@ bool EditorMode::PlayProject(String addArgs, bool debug)
         vargs.Insert(0, "--debug");
 
     if (addArgs.Length() > 0)
-        vargs.Insert(0, addArgs);
+        vargs.Insert(0, addArgs.Split(' '));
 
     String dump;
     dump.Join(vargs, " ");