Fix asset browser displaying wrong file

If multiple files with same filename are present.
This commit is contained in:
IceReaper
2017-10-23 15:46:33 +02:00
committed by reaperrr
parent dc46dd1f26
commit 12407ae995
2 changed files with 55 additions and 21 deletions

View File

@@ -315,5 +315,10 @@ namespace OpenRA.FileSystem
var resolvedPath = Platform.ResolvePath(path);
return File.Exists(resolvedPath) ? resolvedPath : null;
}
public string GetPrefix(IReadOnlyPackage package)
{
return explicitMounts.ContainsValue(package) ? explicitMounts.First(f => f.Value == package).Key : null;
}
}
}