This commit is contained in:
Timothy Baldridge 2022-09-21 06:44:54 -06:00
parent 801f655ef3
commit 592b48e6a3
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
### Changelog
#### Version - 3.0.1.4 - 9/21/2022
* Fix several of case sensitive path comparisons, that could result in deleting downloads
#### Version - 3.0.1.3 - 9/20/2022
* Auto-include splash.png files when compiling
* Fix support for `WABBAJACK_NOMATCH_INCLUDE_FILES.txt` and other variants

View File

@ -140,7 +140,7 @@ public struct AbsolutePath : IPath, IComparable<AbsolutePath>, IEquatable<Absolu
public RelativePath RelativeTo(AbsolutePath basePath)
{
if (!ArrayExtensions.AreEqual(basePath.Parts, 0, Parts, 0, basePath.Parts.Length))
if (!ArrayExtensions.AreEqualIgnoreCase(basePath.Parts, 0, Parts, 0, basePath.Parts.Length))
throw new PathException($"{basePath} is not a base path of {this}");
var newParts = new string[Parts.Length - basePath.Parts.Length];
@ -150,7 +150,7 @@ public struct AbsolutePath : IPath, IComparable<AbsolutePath>, IEquatable<Absolu
public bool InFolder(AbsolutePath parent)
{
return ArrayExtensions.AreEqual(parent.Parts, 0, Parts, 0, parent.Parts.Length);
return ArrayExtensions.AreEqualIgnoreCase(parent.Parts, 0, Parts, 0, parent.Parts.Length);
}
public AbsolutePath Combine(params object[] paths)