From 241943196b7106a4980ae4e3f91f14a5791613ae Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 31 Jan 2018 16:00:46 +0100 Subject: [PATCH] Load_IFF() Add parsing of CAMG chunks --- src/fileformats.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fileformats.c b/src/fileformats.c index 21512a10..a6b0a5a6 100644 --- a/src/fileformats.c +++ b/src/fileformats.c @@ -595,6 +595,7 @@ void Load_IFF(T_IO_Context * context) dword dummy; int iff_format; int plane; + dword AmigaViewModes = 0; Get_full_filename(filename, context->File_name, context->File_directory); @@ -725,6 +726,11 @@ void Load_IFF(T_IO_Context * context) else 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) { Original_screen_X = header.X_screen;