mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
(CgdFormat): file length may vary.
This commit is contained in:
parent
efa9a31658
commit
86171a11f1
@ -43,7 +43,7 @@ namespace GameRes.Formats.GameSystem
|
||||
|
||||
public override ImageMetaData ReadMetaData (IBinaryStream file)
|
||||
{
|
||||
if (file.Signature != file.Length)
|
||||
if (file.Signature != file.Length && file.Signature != file.Length-0x10)
|
||||
return null;
|
||||
var header = file.ReadHeader (0x10);
|
||||
uint width = header.ToUInt32 (4);
|
||||
|
Loading…
Reference in New Issue
Block a user