Skip to content

Commit b1a0590

Browse files
committed
Make modmerger file lookup case insensitive.
1 parent 532e8a0 commit b1a0590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Penumbra/Mods/Editor/ModMerger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ bool GetFullPath(FullPath input, out FullPath ret)
196196
{
197197
if (fromFileToFile)
198198
{
199-
if (!_fileToFile.TryGetValue(input.FullName, out var s))
199+
if (!_fileToFile.TryGetValue(input.FullName.ToLowerInvariant(), out var s))
200200
{
201201
ret = input;
202202
return false;
@@ -238,7 +238,7 @@ private void CopyFiles(DirectoryInfo directory)
238238
Directory.CreateDirectory(finalDir);
239239
file.CopyTo(path);
240240
Penumbra.Log.Verbose($"[Merger] Copied file {file.FullName} to {path}.");
241-
_fileToFile.Add(file.FullName, path);
241+
_fileToFile.Add(file.FullName.ToLowerInvariant(), path);
242242
}
243243
}
244244

0 commit comments

Comments
 (0)