From d7f03d2c7d1980f4ad0b317f4e05b30629103a44 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Perrier Date: Thu, 20 May 2021 17:20:00 +0200 Subject: [PATCH] Handle game argument. --- Source/Editor/Editor.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Editor/Editor.cpp b/Source/Editor/Editor.cpp index 2284478dd..69963aa66 100644 --- a/Source/Editor/Editor.cpp +++ b/Source/Editor/Editor.cpp @@ -519,6 +519,11 @@ bool Editor::Init() return true; } + if (CommandLine::Options.Game.HasValue()) + { + CommandLine::Options.SkipCompile.SetValue(true); + } + // If during last lightmaps baking engine crashed we could try to restore the progress ShadowsOfMordor::Builder::Instance()->CheckIfRestoreState(); @@ -534,6 +539,11 @@ bool Editor::Init() // Initialize managed editor Managed->Init(); + if (CommandLine::Options.Game.HasValue()) + { + Managed->RequestStartPlay(); + } + return false; }