This commit is contained in:
rootdarkarchon
2023-10-06 00:53:27 +02:00
parent 1151d1bf2e
commit 6b8b86305d

View File

@@ -10,7 +10,7 @@ public partial class FileReplacement
public FileReplacement(string[] gamePaths, string filePath, FileCacheManager fileDbManager)
{
GamePaths = gamePaths.Select(g => g.Replace('\\', '/')).ToHashSet(StringComparer.Ordinal);
GamePaths = gamePaths.Select(g => g.Replace('\\', '/').ToLowerInvariant()).ToHashSet(StringComparer.Ordinal);
ResolvedPath = filePath.Replace('\\', '/');
_hashLazy = new(() => !IsFileSwap ? fileDbManager.GetFileCacheByPath(ResolvedPath)?.Hash ?? string.Empty : string.Empty);
}