mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
(SYG): ignore EOF.
This commit is contained in:
parent
e0f17747ae
commit
c758bae342
@ -61,8 +61,7 @@ namespace GameRes.Formats.WestVision
|
||||
int pixel_count = (int)meta.Width * (int)meta.Height;
|
||||
var pixels = new byte[pixel_count * 3];
|
||||
stream.Position = 0x20;
|
||||
if (pixels.Length != stream.Read (pixels, 0, pixels.Length))
|
||||
throw new EndOfStreamException ("Unexpected end of file");
|
||||
stream.Read (pixels, 0, pixels.Length);
|
||||
var format = PixelFormats.Bgr24;
|
||||
if (meta.AlphaOffset != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user