tolower
This commit is contained in:
@@ -10,7 +10,7 @@ public partial class FileReplacement
|
|||||||
|
|
||||||
public FileReplacement(string[] gamePaths, string filePath, FileCacheManager fileDbManager)
|
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('\\', '/');
|
ResolvedPath = filePath.Replace('\\', '/');
|
||||||
_hashLazy = new(() => !IsFileSwap ? fileDbManager.GetFileCacheByPath(ResolvedPath)?.Hash ?? string.Empty : string.Empty);
|
_hashLazy = new(() => !IsFileSwap ? fileDbManager.GetFileCacheByPath(ResolvedPath)?.Hash ?? string.Empty : string.Empty);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user