diff options
author | 2020-08-29 12:48:40 -0700 | |
---|---|---|
committer | 2020-08-29 12:48:40 -0700 | |
commit | 68fecdf7e01936df34261d944ad36fda29b3eb48 (patch) | |
tree | 92188f95cd98f3b4f96a0b459b9d5b43dc9e1ad3 | |
parent | 9d54b039e3f9f169cf599c2ac74d7b8a11b61ae2 (diff) |
pc_dsk: Ignore 84-byte Disk Copy 4.2 header [Justin Kerk]
-rw-r--r-- | src/lib/formats/pc_dsk.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/formats/pc_dsk.cpp b/src/lib/formats/pc_dsk.cpp index 193291c8265..c86335a0596 100644 --- a/src/lib/formats/pc_dsk.cpp +++ b/src/lib/formats/pc_dsk.cpp @@ -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; |