pc_dsk: Ignore 84-byte Disk Copy 4.2 header [Justin Kerk]

This commit is contained in:
Justin Kerk 2020-08-29 12:48:40 -07:00
parent 9d54b039e3
commit 68fecdf7e0

View File

@ -168,6 +168,11 @@ int pc_format::identify(io_generic *io, uint32_t form_factor)
file_header_skip_bytes = 0x200;
}
/* Disk Copy 4.2 images have an 84-byte header */
if (size == 1474560 + 84) {
file_header_skip_bytes = 84;
}
/* some 1.44MB images have a 1024-byte footer */
if (size == 1474560 + 0x400) {
file_footer_skip_bytes = 0x400;