Ignore empty support directory overrides.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user