Rename Platform.GameDir to Platform.EngineDir.

This commit is contained in:
Paul Chote
2020-11-21 15:23:36 +00:00
committed by teinarss
parent 72f1f06ebc
commit 1cc1f93fb0
18 changed files with 29 additions and 29 deletions

View File

@@ -136,7 +136,7 @@ namespace OpenRA
}
// Use a local directory in the game root if it exists (shared with the system support dir)
var localSupportDir = Path.Combine(GameDir, "Support");
var localSupportDir = Path.Combine(EngineDir, "Support");
if (Directory.Exists(localSupportDir))
userSupportPath = systemSupportPath = localSupportDir + Path.DirectorySeparatorChar;
@@ -169,7 +169,7 @@ namespace OpenRA
userSupportPath = path;
}
public static string GameDir
public static string EngineDir
{
get
{
@@ -194,10 +194,10 @@ namespace OpenRA
// Paths starting with . are relative to the game dir
if (path == ".")
return GameDir;
return EngineDir;
if (path.StartsWith("./", StringComparison.Ordinal) || path.StartsWith(".\\", StringComparison.Ordinal))
path = GameDir + path.Substring(2);
path = EngineDir + path.Substring(2);
return path;
}