summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev/floppy.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-06-10 12:34:43 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-06-10 12:34:43 -0400
commit6b7ca78a6c642d0b48e7a16f140cdffc62efac05 (patch)
treec187c0ca7847828ed1b4f244db4c317859edb7f0 /src/devices/imagedev/floppy.h
parentd45ede82700f781aab3eac946d9878eb82cdce57 (diff)
Further improvements to slot option validation (nw)
- All slot options are now validated whether or not they are user-selectable. This has already exposed a bug in one MSX-Audio device. - Slots within slots, however, get added for validation only if they are declared fixed. Various Commodore floppy drives have been affected by this, since it doesn't look as if the current FDC emulation allows for detachability.
Diffstat (limited to 'src/devices/imagedev/floppy.h')
-rw-r--r--src/devices/imagedev/floppy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/devices/imagedev/floppy.h b/src/devices/imagedev/floppy.h
index f18e6425797..9f2d494fb7f 100644
--- a/src/devices/imagedev/floppy.h
+++ b/src/devices/imagedev/floppy.h
@@ -30,6 +30,11 @@
MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) \
static_cast<floppy_connector *>(device)->set_formats(_formats);
+#define MCFG_FLOPPY_DRIVE_ADD_FIXED(_tag, _slot_intf, _def_slot, _formats) \
+ MCFG_DEVICE_ADD(_tag, FLOPPY_CONNECTOR, 0) \
+ MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, true) \
+ static_cast<floppy_connector *>(device)->set_formats(_formats);
+
#define MCFG_FLOPPY_DRIVE_SOUND(_doit) \
static_cast<floppy_connector *>(device)->enable_sound(_doit);