mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +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;
|
int pixel_count = (int)meta.Width * (int)meta.Height;
|
||||||
var pixels = new byte[pixel_count * 3];
|
var pixels = new byte[pixel_count * 3];
|
||||||
stream.Position = 0x20;
|
stream.Position = 0x20;
|
||||||
if (pixels.Length != stream.Read (pixels, 0, pixels.Length))
|
stream.Read (pixels, 0, pixels.Length);
|
||||||
throw new EndOfStreamException ("Unexpected end of file");
|
|
||||||
var format = PixelFormats.Bgr24;
|
var format = PixelFormats.Bgr24;
|
||||||
if (meta.AlphaOffset != 0)
|
if (meta.AlphaOffset != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user