From a2d9297c03fce43280278c890ccc4a659abc1632 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 2 Feb 2020 13:04:37 +0000 Subject: [PATCH] Ignore empty support directory overrides. --- OpenRA.Game/Game.cs | 2 +- OpenRA.Server/Program.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 69f72664f84f..89ebd21720a5 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -266,7 +266,7 @@ public static RunStatus InitializeAndRun(string[] args) static void Initialize(Arguments args) { var supportDirArg = args.GetValue("Engine.SupportDir", null); - if (supportDirArg != null) + if (!string.IsNullOrEmpty(supportDirArg)) Platform.OverrideSupportDir(supportDirArg); Console.WriteLine("Platform is {0}", Platform.CurrentPlatform); diff --git a/OpenRA.Server/Program.cs b/OpenRA.Server/Program.cs index 48a0ec0c748b..532e560a5ac7 100644 --- a/OpenRA.Server/Program.cs +++ b/OpenRA.Server/Program.cs @@ -23,7 +23,7 @@ static void Main(string[] args) { var arguments = new Arguments(args); var supportDirArg = arguments.GetValue("Engine.SupportDir", null); - if (supportDirArg != null) + if (!string.IsNullOrEmpty(supportDirArg)) Platform.OverrideSupportDir(supportDirArg); Log.AddChannel("debug", "dedicated-debug.log", true);