potential mcdf fixes

This commit is contained in:
rootdarkarchon
2023-12-17 18:53:22 +01:00
committed by Loporrit
parent c843af1470
commit add2d2eda9
4 changed files with 62 additions and 24 deletions

View File

@@ -247,7 +247,7 @@ public sealed class FileCacheManager : IDisposable
{
if (_fileCaches.TryGetValue(hash, out var hashes))
{
var item = hashes.FirstOrDefault();
var item = hashes.OrderBy(p => p.PrefixedFilePath.Contains(PenumbraPrefix) ? 0 : 1).FirstOrDefault();
if (item != null) return GetValidatedFileCache(item);
}
return null;