summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/m20.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/m20.cpp')
-rw-r--r--src/mame/drivers/m20.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mame/drivers/m20.cpp b/src/mame/drivers/m20.cpp
index 8713a796516..68197116455 100644
--- a/src/mame/drivers/m20.cpp
+++ b/src/mame/drivers/m20.cpp
@@ -772,18 +772,20 @@ void m20_state::machine_reset()
}
-static SLOT_INTERFACE_START( m20_floppies )
- SLOT_INTERFACE( "5dd", FLOPPY_525_DD )
-SLOT_INTERFACE_END
+static void m20_floppies(device_slot_interface &device)
+{
+ device.option_add("5dd", FLOPPY_525_DD);
+}
FLOPPY_FORMATS_MEMBER( m20_state::floppy_formats )
FLOPPY_M20_FORMAT,
FLOPPY_PC_FORMAT
FLOPPY_FORMATS_END
-static SLOT_INTERFACE_START(keyboard)
- SLOT_INTERFACE("m20", M20_KEYBOARD)
-SLOT_INTERFACE_END
+static void keyboard(device_slot_interface &device)
+{
+ device.option_add("m20", M20_KEYBOARD);
+}
MACHINE_CONFIG_START(m20_state::m20)
/* basic machine hardware */