Skip to content

Commit

Permalink
Ignore empty support directory overrides.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Feb 2, 2020
1 parent c2bc313 commit a2d9297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Game/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a2d9297

Please sign in to comment.