Fix SHA-1 constant usage

This commit is contained in:
Matt Nadareski
2025-02-13 14:29:42 -05:00
parent 232c8ca626
commit c81c060e1b
2 changed files with 4 additions and 4 deletions

View File

@@ -76,8 +76,8 @@ namespace SabreTools.Core.Tools
// Cap the depth between 0 and 20, for now
if (depth < 0)
depth = 0;
else if (depth > ZeroHash.SHA1Str.Length)
depth = ZeroHash.SHA1Str.Length;
else if (depth > ZeroHash.SHA1Arr.Length)
depth = ZeroHash.SHA1Arr.Length;
// Loop through and generate the subdirectory
string path = string.Empty;

View File

@@ -50,8 +50,8 @@ namespace SabreTools.DatFiles
Depth = 4;
else if (Depth < 0)
Depth = 0;
else if (Depth > ZeroHash.SHA1Str.Length)
Depth = ZeroHash.SHA1Str.Length;
else if (Depth > ZeroHash.SHA1Arr.Length)
Depth = ZeroHash.SHA1Arr.Length;
}
#region Cloning