imd_dsk: use has_variant() and accept either HD or QD as 80-track drives [R. Belmont]

This commit is contained in:
arbee 2021-01-10 07:53:36 -05:00
parent 1fad52d8ee
commit 73618d95de

View File

@ -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;