mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix SHA-1 constant usage
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user