Skip to content

Commit

Permalink
Fix GetSupportDir not returning an absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
obrakmann authored and reaperrr committed Jun 18, 2017
1 parent c4e8af0 commit f6e87f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OpenRA.Game/Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ public static string RuntimeVersion
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);

Expand Down

0 comments on commit f6e87f6

Please sign in to comment.