Update ST.Hashing version
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetName>irdkit</TargetName>
|
||||
<AssemblyName>irdkit</AssemblyName>
|
||||
<TargetFrameworks>net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
|
||||
<CheckEolTargetFramework>false</CheckEolTargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommandLineParser" Version="2.9.1" />
|
||||
<PackageReference Include="SabreTools.Hashing" Version="1.1.2" />
|
||||
<PackageReference Include="SabreTools.Hashing" Version="1.1.3" />
|
||||
<PackageReference Include="SabreTools.RedumpLib" Version="1.3.4" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
+6
-2
@@ -933,8 +933,12 @@ namespace IRDKit
|
||||
Console.WriteLine("No key provided... Searching for key on redump.org");
|
||||
|
||||
// Compute CRC32 hash
|
||||
string crc32String = HashTool.GetFileHash(isoPath, HashType.CRC32); // TODO: Output byte[] once ST.Hashing supports it
|
||||
uint crc32UInt = BitConverter.ToUInt32(LibIRD.IRD.HexStringToByteArray(crc32String), 0);
|
||||
byte[] crc32 = HashTool.GetFileHashArray(isoPath, HashType.CRC32);
|
||||
string crc32String = LibIRD.IRD.ByteArrayToHexString(crc32).ToLowerInvariant();
|
||||
|
||||
// Convert to UInt for use as UID in IRD
|
||||
Array.Reverse(crc32);
|
||||
uint crc32UInt = BitConverter.ToUInt32(crc32, 0);
|
||||
|
||||
// Search for ISO on redump.org
|
||||
#if !NETFRAMEWORK
|
||||
|
||||
Reference in New Issue
Block a user