OpenRA.Platform.UnresolvePath C# (CSharp) Method

UnresolvePath() public static method

Replace the full path prefix with the special notation characters ^ or .
public static UnresolvePath ( string path ) : string
path string
return string
        public static string UnresolvePath(string path)
        {
            if (path.StartsWith(SupportDir, StringComparison.Ordinal))
                path = "^" + path.Substring(SupportDir.Length);

            if (path.StartsWith(GameDir, StringComparison.Ordinal))
                path = "./" + path.Substring(GameDir.Length);

            return path;
        }