mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(AbmFormat.ReadMetaData): ignore ordinary BMP files.
This commit is contained in:
parent
d63477801b
commit
152e180f0b
@ -56,6 +56,9 @@ namespace GameRes.Formats.Lilim
|
|||||||
}
|
}
|
||||||
else if (32 == type || 24 == type)
|
else if (32 == type || 24 == type)
|
||||||
{
|
{
|
||||||
|
uint unpacked_size = LittleEndian.ToUInt32 (header, 2);
|
||||||
|
if (unpacked_size == stream.Length) // probably an ordinary bmp file
|
||||||
|
return null;
|
||||||
frame_offset = LittleEndian.ToUInt32 (header, 0xA);
|
frame_offset = LittleEndian.ToUInt32 (header, 0xA);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user