summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2021-01-10 07:53:36 -0500
committer arbee <rb6502@users.noreply.github.com>2021-01-10 07:53:36 -0500
commit73618d95dedeef48cc0f3e212826095ddca79c32 (patch)
treeaa6616720c697884d8889ae571ab3b38e17ba9f3 /src
parent1fad52d8ee063fd69882ffecd1d7f721c263b06f (diff)
imd_dsk: use has_variant() and accept either HD or QD as 80-track drives [R. Belmont]
Diffstat (limited to 'src')
-rw-r--r--src/lib/formats/imd_dsk.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/formats/imd_dsk.cpp b/src/lib/formats/imd_dsk.cpp
index a3d2b68d6f9..25ba6c22791 100644
--- a/src/lib/formats/imd_dsk.cpp
+++ b/src/lib/formats/imd_dsk.cpp
@@ -493,15 +493,12 @@ bool imd_format::load(io_generic *io, uint32_t form_factor, const std::vector<ui
}
}
- // Check if the drive is HD but we're a 40 track image.
+ // Check if the drive is QD or HD but we're a 40 track image.
// If so, put the image on even tracks.
- for (auto &fmt : variants)
+ if ((has_variant(variants, floppy_image::DSQD)) ||
+ (has_variant(variants, floppy_image::DSHD)))
{
- if ((maxtrack <= 39) && (fmt == floppy_image::DSHD))
- {
- m_trackmult = 2;
- break;
- }
+ m_trackmult = 2;
}
pos = savepos;