Skip to content

Commit 713f2c2

Browse files
committed
Fix CRC
1 parent 20182f6 commit 713f2c2

3 files changed

Lines changed: 538 additions & 81 deletions

File tree

UnityAsset.NET/BundleFile/BundleFile.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,7 @@ public void fixCRC(uint targetCRC, uint currentCRC)
369369
{
370370
return;
371371
}
372-
uint append = CRC32.rCRC(targetCRC, currentCRC);
373-
var fixCRCBytes = BitConverter.GetBytes(append);
374-
Array.Reverse(fixCRCBytes);
372+
var fixCRCBytes = CRC32.rCRC(targetCRC, currentCRC);
375373

376374
cabStreams[^1].SetLength(cabStreams[^1].Length + 4);
377375
cabStreams[^1].Position = cabStreams[^1].Length - 4;

0 commit comments

Comments
 (0)