Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes-containers.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'NesFile.cs')
-rw-r--r--NesFile.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NesFile.cs b/NesFile.cs
index ad45117..1c7bee0 100644
--- a/NesFile.cs
+++ b/NesFile.cs
@@ -969,7 +969,7 @@ namespace com.clusterrr.Famicom.Containers
crc32.TransformBlock(chr, 0, chr.Length, null, 0);
crc32.TransformBlock(Enumerable.Repeat<byte>(byte.MaxValue, chrSizeUpPow2 - chr.Length).ToArray(), 0, chrSizeUpPow2 - chr.Length, null, 0);
crc32.TransformFinalBlock(new byte[0], 0, 0);
- return BitConverter.ToUInt32(crc32.Hash, 0);
+ return BitConverter.ToUInt32(crc32.Hash.Reverse().ToArray(), 0);
}
}
}