summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/magtouch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/magtouch.cpp')
-rw-r--r--src/mame/drivers/magtouch.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mame/drivers/magtouch.cpp b/src/mame/drivers/magtouch.cpp
index c3e4eaa190c..544f86717de 100644
--- a/src/mame/drivers/magtouch.cpp
+++ b/src/mame/drivers/magtouch.cpp
@@ -102,6 +102,8 @@ public:
DECLARE_WRITE8_MEMBER(magtouch_io_w);
DECLARE_WRITE8_MEMBER(dma8237_1_dack_w);
virtual void machine_start() override;
+ static void magtouch_sb_conf(device_t *device);
+ void magtouch(machine_config &config);
};
/*************************************
@@ -177,12 +179,13 @@ static DEVICE_INPUT_DEFAULTS_START( magtouch_sb_def )
DEVICE_INPUT_DEFAULTS("CONFIG", 0x03, 0x01)
DEVICE_INPUT_DEFAULTS_END
-static MACHINE_CONFIG_START( magtouch_sb_conf )
- MCFG_DEVICE_MODIFY("pc_joy")
+void magtouch_state::magtouch_sb_conf(device_t *device)
+{
+ device = device->subdevice("pc_joy");
MCFG_DEVICE_SLOT_INTERFACE(pc_joysticks, nullptr, true) // remove joystick
-MACHINE_CONFIG_END
+}
-static MACHINE_CONFIG_START( magtouch )
+MACHINE_CONFIG_START(magtouch_state::magtouch)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", I386, 14318180*2) /* I386 ?? Mhz */
MCFG_CPU_PROGRAM_MAP(magtouch_map)