From 9b04f39738d6d5065d6f5a4fb545922e162c2bb5 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 9 Jun 2016 19:48:07 +0400 Subject: [PATCH] (DwqFormat): PACKTYPE 1 is a packed BMP. --- ArcFormats/BlackCyc/ImageDWQ.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArcFormats/BlackCyc/ImageDWQ.cs b/ArcFormats/BlackCyc/ImageDWQ.cs index 540d65cd..0de67ae3 100644 --- a/ArcFormats/BlackCyc/ImageDWQ.cs +++ b/ArcFormats/BlackCyc/ImageDWQ.cs @@ -97,7 +97,7 @@ namespace GameRes.Formats.BlackCyc { if (!Binary.AsciiEqual (header.Bytes, 0x0D, "0 ") || !Binary.AsciiEqual (header.Bytes, 0x2C, "BMP ") || - header.PackType != 0) + header.PackType != 0 && header.PackType != 1) return null; using (var bmp = new StreamRegion (stream, 0x40, true)) { @@ -173,6 +173,7 @@ namespace GameRes.Formats.BlackCyc break; } + case 1: case 3: // PACKBMP+MASK { var reader = new DwqBmpReader (input, meta);