mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +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 (Binary.BigEndian ((uint)image.OffsetY));
|
||||||
bin.Write ((byte)0);
|
bin.Write ((byte)0);
|
||||||
bin.Flush();
|
bin.Flush();
|
||||||
uint crc = Crc32.Compute (membuf.GetBuffer(), 8, 9);
|
uint crc = Crc32.Compute (membuf.GetBuffer(), 4, 13);
|
||||||
bin.Write (Binary.BigEndian (crc));
|
bin.Write (Binary.BigEndian (crc));
|
||||||
}
|
}
|
||||||
file.Write (membuf.GetBuffer(), 0, 9+12); // chunk + size+id+crc
|
file.Write (membuf.GetBuffer(), 0, 9+12); // chunk + size+id+crc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user