Ignore empty support directory overrides.

This commit is contained in:
Paul Chote
2020-02-02 13:04:37 +00:00
committed by abcdefg30
parent c2bc313bf0
commit 0e39c98989
2 changed files with 2 additions and 2 deletions

View File

@@ -266,7 +266,7 @@ namespace OpenRA
static void Initialize(Arguments args) static void Initialize(Arguments args)
{ {
var supportDirArg = args.GetValue("Engine.SupportDir", null); var supportDirArg = args.GetValue("Engine.SupportDir", null);
if (supportDirArg != null) if (!string.IsNullOrEmpty(supportDirArg))
Platform.OverrideSupportDir(supportDirArg); Platform.OverrideSupportDir(supportDirArg);
Console.WriteLine("Platform is {0}", Platform.CurrentPlatform); Console.WriteLine("Platform is {0}", Platform.CurrentPlatform);

View File

@@ -23,7 +23,7 @@ namespace OpenRA.Server
{ {
var arguments = new Arguments(args); var arguments = new Arguments(args);
var supportDirArg = arguments.GetValue("Engine.SupportDir", null); var supportDirArg = arguments.GetValue("Engine.SupportDir", null);
if (supportDirArg != null) if (!string.IsNullOrEmpty(supportDirArg))
Platform.OverrideSupportDir(supportDirArg); Platform.OverrideSupportDir(supportDirArg);
Log.AddChannel("debug", "dedicated-debug.log", true); Log.AddChannel("debug", "dedicated-debug.log", true);