summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Peter Ferrie <peter.ferrie@gmail.com>2023-02-03 09:08:04 -0800
committer Peter Ferrie <peter.ferrie@gmail.com>2023-02-03 09:08:04 -0800
commitc2b96b44eafdda44b67a9e723304454258cb168c (patch)
tree9eb2d73ed68bc869d222a61de0e1079b30168b52 /src/lib
parente03c0cb4a04638d36bd9e50de7c996af9b10d5a8 (diff)
ap_dsk35.cpp: enable 1.44Mb dc42 images [Peter Ferrie]
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/formats/ap_dsk35.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/formats/ap_dsk35.cpp b/src/lib/formats/ap_dsk35.cpp
index d481fdbb61a..e899750334d 100644
--- a/src/lib/formats/ap_dsk35.cpp
+++ b/src/lib/formats/ap_dsk35.cpp
@@ -152,7 +152,7 @@ int dc42_format::identify(util::random_read &io, uint32_t form_factor, const std
return 0;
}
- return (size == 0x54+tsize+dsize && h[0] < 64 && h[0x52] == 1 && h[0x53] == 0) ? FIFID_STRUCT|FIFID_STRUCT : 0;
+ return (size == 0x54+tsize+dsize && h[0] < 64 && h[0x52] == 1 && h[0x53] == 0) ? FIFID_STRUCT : 0;
}
bool dc42_format::load(util::random_read &io, uint32_t form_factor, const std::vector<uint32_t> &variants, floppy_image *image) const
@@ -166,7 +166,7 @@ bool dc42_format::load(util::random_read &io, uint32_t form_factor, const std::v
uint8_t encoding = h[0x50];
uint8_t format = h[0x51];
- if((encoding != 0x00 || format != 0x02) && (encoding != 0x01 || (format != 0x22 && format != 0x24))) {
+ if((encoding != 0x00 || format != 0x02) && ((encoding != 0x01 && encoding != 0x03) || (format != 0x22 && format != 0x24))) {
osd_printf_error("dc42: Unsupported encoding/format combination %02x/%02x\n", encoding, format);
return false;
}