updated formats.

(ExeFile): limited support for 16-bit Windows executables.
(MbImageFormat): recognize 'MK' signature.
(XP3, VF, YPF): added common executable signature.
(PICT): improved parser.
(Macromedia): improved support, recognize archives within windows executables.
(SEEN): fixed decompression.
This commit is contained in:
morkt
2023-09-25 21:01:22 +04:00
parent bfd81f9ec4
commit 3c3f2013ef
16 changed files with 220 additions and 374 deletions

View File

@@ -38,17 +38,18 @@ namespace GameRes.Formats
public MbImageFormat ()
{
Extensions = new[] { "bmp", "gra" };
Extensions = new[] { "bmp", "gra", "xxx" };
}
public override ImageMetaData ReadMetaData (IBinaryStream stream)
{
int c1 = stream.ReadByte();
int c2 = stream.ReadByte();
// MB/MC/MK/CL
switch (c1)
{
case 'M':
if ('B' != c2 && 'C' != c2)
if ('B' != c2 && 'C' != c2 && 'K' != c2)
return null;
break;
case 'C':