(DwqFormat): PACKTYPE 1 is a packed BMP.

This commit is contained in:
morkt 2016-06-09 19:48:07 +04:00
parent 46a6c5390f
commit 9b04f39738

View File

@ -97,7 +97,7 @@ namespace GameRes.Formats.BlackCyc
{ {
if (!Binary.AsciiEqual (header.Bytes, 0x0D, "0 ") || if (!Binary.AsciiEqual (header.Bytes, 0x0D, "0 ") ||
!Binary.AsciiEqual (header.Bytes, 0x2C, "BMP ") || !Binary.AsciiEqual (header.Bytes, 0x2C, "BMP ") ||
header.PackType != 0) header.PackType != 0 && header.PackType != 1)
return null; return null;
using (var bmp = new StreamRegion (stream, 0x40, true)) using (var bmp = new StreamRegion (stream, 0x40, true))
{ {
@ -173,6 +173,7 @@ namespace GameRes.Formats.BlackCyc
break; break;
} }
case 1:
case 3: // PACKBMP+MASK case 3: // PACKBMP+MASK
{ {
var reader = new DwqBmpReader (input, meta); var reader = new DwqBmpReader (input, meta);