summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/wangpc.c
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2012-11-22 19:33:19 +0000
committer Curt Coder <curtcoder@mail.com>2012-11-22 19:33:19 +0000
commit9046ce0dc516d3a8b947deaa67448068c198eb45 (patch)
tree0f3c1a6ba191584dfd05631c95c6a4d978d37fd4 /src/mess/drivers/wangpc.c
parent20f0cd1a58cfeff8d49437b9c34a344732939706 (diff)
sed1310: Cleanup. (nw)
(MESS) bw2: Fixed memory mapping. (nw) (MESS) msm6255: Refactored to use device_memory_interface. (nw) (MESS) floppy: Added macros for declaring modern floppy formats. The generic floppy formats (D88/DFI/IMD/IPF/MFI/MFM) are now automatically supported in each driver using the modern floppy code. [Curt Coder]
Diffstat (limited to 'src/mess/drivers/wangpc.c')
-rw-r--r--src/mess/drivers/wangpc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mess/drivers/wangpc.c b/src/mess/drivers/wangpc.c
index ab5cb3865b0..708362613cf 100644
--- a/src/mess/drivers/wangpc.c
+++ b/src/mess/drivers/wangpc.c
@@ -1032,12 +1032,6 @@ static MC2661_INTERFACE( epci_intf )
// upd765_interface fdc_intf
//-------------------------------------------------
-
-static const floppy_format_type wangpc_floppy_formats[] = {
- FLOPPY_MFI_FORMAT,
- NULL
-};
-
static SLOT_INTERFACE_START( wangpc_floppies )
SLOT_INTERFACE( "525dd", FLOPPY_525_DD )
SLOT_INTERFACE_END
@@ -1256,8 +1250,8 @@ static MACHINE_CONFIG_START( wangpc, wangpc_state )
MCFG_IM6402_ADD(IM6402_TAG, uart_intf)
MCFG_MC2661_ADD(SCN2661_TAG, 0, epci_intf)
MCFG_UPD765A_ADD(UPD765_TAG, false, false)
- MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":0", wangpc_floppies, "525dd", 0, wangpc_floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":1", wangpc_floppies, "525dd", 0, wangpc_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":0", wangpc_floppies, "525dd", 0, floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":1", wangpc_floppies, "525dd", 0, floppy_image_device::default_floppy_formats)
MCFG_CENTRONICS_PRINTER_ADD(CENTRONICS_TAG, centronics_intf)
MCFG_WANGPC_KEYBOARD_ADD()