summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/fantland.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-01-07 22:20:14 +0100
committer Olivier Galibert <galibert@pobox.com>2018-01-17 16:11:18 +0100
commitd469cc04bcace0f601802301caeddc5b473b75f2 (patch)
treea9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/fantland.cpp
parent9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff)
API Change: Machine configs are now a method of the owner class, and the prototype is simplified [O. Galibert]
Beware, the device context does not follow in MCFG_FRAGMENT_ADD anymore due to the prototype change. So creating a device then configuring through a fragment doesn't work as-is. The simplest solution is just to add a MCFG_DEVICE_MODIFY at the start of the fragment with the correct tag.
Diffstat (limited to 'src/mame/drivers/fantland.cpp')
-rw-r--r--src/mame/drivers/fantland.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/fantland.cpp b/src/mame/drivers/fantland.cpp
index 0bdeb8a64d1..36061b647ab 100644
--- a/src/mame/drivers/fantland.cpp
+++ b/src/mame/drivers/fantland.cpp
@@ -839,7 +839,7 @@ INTERRUPT_GEN_MEMBER(fantland_state::fantland_sound_irq)
device.execute().set_input_line_and_vector(0, HOLD_LINE, 0x80 / 4);
}
-static MACHINE_CONFIG_START( fantland )
+MACHINE_CONFIG_START(fantland_state::fantland)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", I8086, 8000000) // ?
@@ -890,7 +890,7 @@ WRITE_LINE_MEMBER(fantland_state::galaxygn_sound_irq)
m_audiocpu->set_input_line_and_vector(0, state ? ASSERT_LINE : CLEAR_LINE, 0x80/4);
}
-static MACHINE_CONFIG_START( galaxygn )
+MACHINE_CONFIG_START(fantland_state::galaxygn)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", I8088, 8000000) // ?
@@ -972,7 +972,7 @@ MACHINE_RESET_MEMBER(fantland_state,borntofi)
borntofi_adpcm_stop(m_msm4, 3);
}
-static MACHINE_CONFIG_START( borntofi )
+MACHINE_CONFIG_START(fantland_state::borntofi)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", V20, 16000000/2) // D701080C-8 - NEC D70108C-8 V20 CPU, running at 8.000MHz [16/2]
@@ -1026,7 +1026,7 @@ static MACHINE_CONFIG_START( borntofi )
MACHINE_CONFIG_END
-static MACHINE_CONFIG_START( wheelrun )
+MACHINE_CONFIG_START(fantland_state::wheelrun)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", V20, XTAL_18MHz/2) // D701080C-8 (V20)