From c81c060e1b21c11b6428ed4fd61535a29a9a804e Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 13 Feb 2025 14:29:42 -0500 Subject: [PATCH] Fix SHA-1 constant usage --- SabreTools.Core/Tools/Utilities.cs | 4 ++-- SabreTools.DatFiles/DepotInformation.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SabreTools.Core/Tools/Utilities.cs b/SabreTools.Core/Tools/Utilities.cs index 087fe2d8..bf46d12f 100644 --- a/SabreTools.Core/Tools/Utilities.cs +++ b/SabreTools.Core/Tools/Utilities.cs @@ -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; diff --git a/SabreTools.DatFiles/DepotInformation.cs b/SabreTools.DatFiles/DepotInformation.cs index 140ac70a..b5c38cda 100644 --- a/SabreTools.DatFiles/DepotInformation.cs +++ b/SabreTools.DatFiles/DepotInformation.cs @@ -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