Resolve a bare "." to the game install path.

This commit is contained in:
Paul Chote
2016-09-14 19:44:57 +01:00
parent 634faa31de
commit 6deb49e095

View File

@@ -106,6 +106,9 @@ namespace OpenRA
path = SupportDir + path.Substring(1);
// paths starting with . are relative to the game dir
if (path == ".")
return GameDir;
if (path.StartsWith("./") || path.StartsWith(".\\"))
path = GameDir + path.Substring(2);