mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Fix case sensitivity issues with long filenames.
This commit is contained in:
parent
f5d0e547e2
commit
ec1d5134ac
1 changed files with 2 additions and 2 deletions
|
@ -131,14 +131,14 @@ namespace DiscUtils.Fat
|
|||
return false;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(LongName) && !string.IsNullOrEmpty(other.LongName))
|
||||
return LongName == other.LongName;
|
||||
return LongName.Equals(other.LongName, StringComparison.InvariantCultureIgnoreCase);
|
||||
|
||||
return CompareRawNames(this, other) == 0;
|
||||
}
|
||||
|
||||
public static FileName FromPath(string path, Encoding encoding)
|
||||
{
|
||||
return new FileName(Utilities.GetFileFromPath(path), encoding, false);
|
||||
return new FileName(Utilities.GetFileFromPath(path), encoding, true);
|
||||
}
|
||||
|
||||
public static bool operator ==(FileName a, FileName b)
|
||||
|
|
Loading…
Reference in a new issue