Replace Constants with Hashing

This commit is contained in:
Matt Nadareski
2024-03-06 11:23:22 -05:00
parent 243019d8f7
commit 48cbd47966
10 changed files with 11 additions and 56 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using SabreTools.Hashing;
namespace SabreTools.Core.Tools
{

View File

@@ -1,6 +1,7 @@
using System;
using System.IO;
using System.Linq;
using SabreTools.Hashing;
using SabreTools.Matching;
namespace SabreTools.Core.Tools
@@ -63,8 +64,8 @@ namespace SabreTools.Core.Tools
// Cap the depth between 0 and 20, for now
if (depth < 0)
depth = 0;
else if (depth > (Constants.SHA1Length / 2))
depth = (Constants.SHA1Length / 2);
else if (depth > Constants.SHA1Zero.Length)
depth = Constants.SHA1Zero.Length;
// Loop through and generate the subdirectory
string path = string.Empty;