From 632b277a0e22f79dbdf2329202b8014613644d9a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 14 Sep 2016 19:46:58 +0100 Subject: [PATCH] Other misc fixes in Platform. --- OpenRA.Game/Platform.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/OpenRA.Game/Platform.cs b/OpenRA.Game/Platform.cs index b083016570..fb1c175095 100644 --- a/OpenRA.Game/Platform.cs +++ b/OpenRA.Game/Platform.cs @@ -39,8 +39,8 @@ namespace OpenRA var kernelName = p.StandardOutput.ReadToEnd(); if (kernelName.Contains("Darwin")) return PlatformType.OSX; - else - return PlatformType.Linux; + + return PlatformType.Linux; } catch { } @@ -82,7 +82,6 @@ namespace OpenRA case PlatformType.OSX: dir += "/Library/Application Support/OpenRA"; break; - case PlatformType.Linux: default: dir += "/.openra"; break; @@ -101,11 +100,11 @@ namespace OpenRA { path = path.TrimEnd(new char[] { ' ', '\t' }); - // paths starting with ^ are relative to the support dir + // Paths starting with ^ are relative to the support dir if (path.StartsWith("^", StringComparison.Ordinal)) path = SupportDir + path.Substring(1); - // paths starting with . are relative to the game dir + // Paths starting with . are relative to the game dir if (path == ".") return GameDir;