(AbmFormat.ReadMetaData): ignore ordinary BMP files.

This commit is contained in:
morkt 2015-11-15 14:09:31 +04:00
parent d63477801b
commit 152e180f0b

View File

@ -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