mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(TINK): tweaked 'c' type image reading.
This commit is contained in:
@@ -145,6 +145,8 @@ namespace GameRes.Formats.Cyberworks
|
|||||||
{
|
{
|
||||||
var size_buf = new byte[4];
|
var size_buf = new byte[4];
|
||||||
input.Read (size_buf, 0 , 4);
|
input.Read (size_buf, 0 , 4);
|
||||||
|
if ('c' == type)
|
||||||
|
input.ReadByte();
|
||||||
var decoder = new PngBitmapDecoder (input, BitmapCreateOptions.None,
|
var decoder = new PngBitmapDecoder (input, BitmapCreateOptions.None,
|
||||||
BitmapCacheOption.OnLoad);
|
BitmapCacheOption.OnLoad);
|
||||||
BitmapSource frame = decoder.Frames[0];
|
BitmapSource frame = decoder.Frames[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user