Don't trim universal hash anymore

This commit is contained in:
Matt Nadareski
2026-07-04 17:27:21 -04:00
parent 13dbc395ef
commit 2068ef251a

View File

@@ -53,15 +53,8 @@ namespace SabreTools.RedumpLib.Tools
if (string.IsNullOrEmpty(universalHash))
return null;
// Format the universal hash for finding within the comments
#if NETCOREAPP || NETSTANDARD2_1_OR_GREATER
string universalHashQuery = universalHash![..^1];
#else
string universalHashQuery = universalHash!.Substring(0, universalHash.Length - 1);
#endif
// Get all matching IDs for the hash
var newIds = await client.ListDiscsResults(comments: universalHashQuery);
var newIds = await client.ListDiscsResults(comments: universalHash);
// If we got null back, there was an error
if (newIds is null)