Fix GetSupportDir not returning an absolute path

This commit is contained in:
Oliver Brakmann
2017-06-17 18:40:50 +02:00
committed by reaperrr
parent c4e8af08ec
commit f6e87f63e7

View File

@@ -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);