Handle game argument.
This commit is contained in:
@@ -519,6 +519,11 @@ bool Editor::Init()
|
|||||||
return true;
|
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
|
// If during last lightmaps baking engine crashed we could try to restore the progress
|
||||||
ShadowsOfMordor::Builder::Instance()->CheckIfRestoreState();
|
ShadowsOfMordor::Builder::Instance()->CheckIfRestoreState();
|
||||||
|
|
||||||
@@ -534,6 +539,11 @@ bool Editor::Init()
|
|||||||
// Initialize managed editor
|
// Initialize managed editor
|
||||||
Managed->Init();
|
Managed->Init();
|
||||||
|
|
||||||
|
if (CommandLine::Options.Game.HasValue())
|
||||||
|
{
|
||||||
|
Managed->RequestStartPlay();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user