mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(PngFormat): fixed oFFs chunk CRC calculation.
This commit is contained in:
parent
0dc038be69
commit
f676fd613e
@ -94,7 +94,7 @@ namespace GameRes
|
||||
bin.Write (Binary.BigEndian ((uint)image.OffsetY));
|
||||
bin.Write ((byte)0);
|
||||
bin.Flush();
|
||||
uint crc = Crc32.Compute (membuf.GetBuffer(), 8, 9);
|
||||
uint crc = Crc32.Compute (membuf.GetBuffer(), 4, 13);
|
||||
bin.Write (Binary.BigEndian (crc));
|
||||
}
|
||||
file.Write (membuf.GetBuffer(), 0, 9+12); // chunk + size+id+crc
|
||||
|
Loading…
x
Reference in New Issue
Block a user