From 86171a11f1207e937b6f56b2f64dcd4dd76b4095 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 7 Jan 2018 01:15:11 +0400 Subject: [PATCH] (CgdFormat): file length may vary. --- ArcFormats/GameSystem/ImageCGD.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/GameSystem/ImageCGD.cs b/ArcFormats/GameSystem/ImageCGD.cs index 414aa482..c186b93d 100644 --- a/ArcFormats/GameSystem/ImageCGD.cs +++ b/ArcFormats/GameSystem/ImageCGD.cs @@ -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);