(CgdFormat): file length may vary.

This commit is contained in:
morkt 2018-01-07 01:15:11 +04:00
parent efa9a31658
commit 86171a11f1

View File

@ -43,7 +43,7 @@ namespace GameRes.Formats.GameSystem
public override ImageMetaData ReadMetaData (IBinaryStream file) public override ImageMetaData ReadMetaData (IBinaryStream file)
{ {
if (file.Signature != file.Length) if (file.Signature != file.Length && file.Signature != file.Length-0x10)
return null; return null;
var header = file.ReadHeader (0x10); var header = file.ReadHeader (0x10);
uint width = header.ToUInt32 (4); uint width = header.ToUInt32 (4);