Load_IFF() Add parsing of CAMG chunks

This commit is contained in:
Thomas Bernard 2018-01-31 16:00:46 +01:00
parent 14cce41ba9
commit 241943196b

View File

@ -595,6 +595,7 @@ void Load_IFF(T_IO_Context * context)
dword dummy; dword dummy;
int iff_format; int iff_format;
int plane; int plane;
dword AmigaViewModes = 0;
Get_full_filename(filename, context->File_name, context->File_directory); Get_full_filename(filename, context->File_name, context->File_directory);
@ -725,6 +726,11 @@ void Load_IFF(T_IO_Context * context)
else else
File_error=47; File_error=47;
} }
else if (memcmp(section, "CAMG", 4) == 0) // Amiga Viewport Modes
{
Read_dword_be(IFF_file, &AmigaViewModes); // HIRES=0x8000 LACE=0x4 HAM=0x800 HALFBRITE=0x80
section_size -= 4;
}
else if (memcmp(section, "BODY", 4) == 0) else if (memcmp(section, "BODY", 4) == 0)
{ {
Original_screen_X = header.X_screen; Original_screen_X = header.X_screen;