From f6e87f63e7989a0b2648cb824d414f7d4fd640a9 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sat, 17 Jun 2017 18:40:50 +0200 Subject: [PATCH] Fix GetSupportDir not returning an absolute path --- OpenRA.Game/Platform.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Platform.cs b/OpenRA.Game/Platform.cs index 4925d01a6f..91f16e9914 100644 --- a/OpenRA.Game/Platform.cs +++ b/OpenRA.Game/Platform.cs @@ -70,8 +70,9 @@ namespace OpenRA static string GetSupportDir() { // Use a local directory in the game root if it exists - if (Directory.Exists("Support")) - return "Support" + Path.DirectorySeparatorChar; + var supportDir = Path.Combine(GameDir, "Support"); + if (Directory.Exists(supportDir)) + return supportDir + Path.DirectorySeparatorChar; var dir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);