Fix GetSupportDir not returning an absolute path
This commit is contained in:
committed by
reaperrr
parent
c4e8af08ec
commit
f6e87f63e7
@@ -70,8 +70,9 @@ namespace OpenRA
|
|||||||
static string GetSupportDir()
|
static string GetSupportDir()
|
||||||
{
|
{
|
||||||
// Use a local directory in the game root if it exists
|
// Use a local directory in the game root if it exists
|
||||||
if (Directory.Exists("Support"))
|
var supportDir = Path.Combine(GameDir, "Support");
|
||||||
return "Support" + Path.DirectorySeparatorChar;
|
if (Directory.Exists(supportDir))
|
||||||
|
return supportDir + Path.DirectorySeparatorChar;
|
||||||
|
|
||||||
var dir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
|
var dir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user