From 1935404928f0db060abb8e8d5d4952a1015f7f7b Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Sat, 22 Nov 2025 18:25:01 +0900 Subject: [PATCH] Don't reverse CRC32 --- LibIRD/IRD.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/LibIRD/IRD.cs b/LibIRD/IRD.cs index 9b83008..cc38790 100644 --- a/LibIRD/IRD.cs +++ b/LibIRD/IRD.cs @@ -1162,7 +1162,6 @@ namespace LibIRD isoHasher.Terminate(); crc32 = isoHasher.CurrentHashBytes; isoHasher.Dispose(); - Array.Reverse(crc32); UID = BitConverter.ToUInt32(crc32, 0); } @@ -1421,7 +1420,6 @@ namespace LibIRD // Calculate the little-endian 32-bit "IEEE 802.3" CRC value of the IRD contents so far stream.Position = 0; byte[] crc32 = HashTool.GetStreamHashArray(stream, HashType.CRC32, true); - Array.Reverse(crc32); // Write final CRC value to the stream stream.Write(crc32, 0, 4);