Skip to content

Commit ec83e2f

Browse files
woodbyteIDCs
authored andcommitted
Make DLC folder search case-insensitive
Due to differences between the Steam and GOG versions of the game, the previous case-sensitive search could miss some of the DLC folders.
1 parent 7db33f2 commit ec83e2f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

WitcherScriptMerger/Inventory/FileMerger.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ bool GetUnpackedFiles(string contentRelativePath, ref MergeSource source1, ref M
343343
.Select(path => Path.Combine(path, "bundles"))
344344
.Concat(
345345
Directory.GetDirectories(Paths.DlcDirectory)
346-
.Where(path => new Regex("DLC[0-9]*$").IsMatch(path) || new Regex("ep[0-9]$").IsMatch(path) || new Regex("bob$").IsMatch(path))
346+
.Where(path => new Regex("DLC[0-9]*$", RegexOptions.IgnoreCase).IsMatch(path) ||
347+
new Regex("ep[0-9]$", RegexOptions.IgnoreCase).IsMatch(path) ||
348+
new Regex("bob$", RegexOptions.IgnoreCase).IsMatch(path))
347349
.Select(path => Path.Combine(path, Paths.BundleBase, "bundles"))
348350
)
349351
.Where(path => Directory.Exists(path))

0 commit comments

Comments
 (0)