mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
imd_dsk: use has_variant() and accept either HD or QD as 80-track drives [R. Belmont]
This commit is contained in:
parent
1fad52d8ee
commit
73618d95de
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user