summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mcr.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/mcr.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/mcr.cpp')
-rw-r--r--src/mame/drivers/mcr.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/mcr.cpp b/src/mame/drivers/mcr.cpp
index 2b9954067d0..313384e8bab 100644
--- a/src/mame/drivers/mcr.cpp
+++ b/src/mame/drivers/mcr.cpp
@@ -1741,7 +1741,7 @@ static const char *const twotiger_sample_names[] =
*************************************/
/* 90009 CPU board plus 90908/90913/91483 sound board */
-static MACHINE_CONFIG_START( mcr_90009 )
+MACHINE_CONFIG_START(mcr_state::mcr_90009)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", Z80, MAIN_OSC_MCR_I/8)
@@ -1782,7 +1782,7 @@ MACHINE_CONFIG_END
/* as above, but in a casino cabinet */
-static MACHINE_CONFIG_DERIVED( mcr_90009_dp, mcr_90009 )
+MACHINE_CONFIG_DERIVED(mcr_dpoker_state::mcr_90009_dp, mcr_90009)
/* basic machine hardware */
MCFG_TIMER_DRIVER_ADD("coinin", mcr_dpoker_state, coin_in_callback)
@@ -1791,7 +1791,7 @@ MACHINE_CONFIG_END
/* 90010 CPU board plus 90908/90913/91483 sound board */
-static MACHINE_CONFIG_DERIVED( mcr_90010, mcr_90009 )
+MACHINE_CONFIG_DERIVED(mcr_state::mcr_90010, mcr_90009)
/* basic machine hardware */
MCFG_CPU_MODIFY("maincpu")
@@ -1806,7 +1806,7 @@ MACHINE_CONFIG_END
/* as above, plus 8-track tape */
-static MACHINE_CONFIG_DERIVED( mcr_90010_tt, mcr_90010 )
+MACHINE_CONFIG_DERIVED(mcr_state::mcr_90010_tt, mcr_90010)
/* sound hardware */
MCFG_SOUND_ADD("samples", SAMPLES, 0)
@@ -1818,7 +1818,7 @@ MACHINE_CONFIG_END
/* 91475 CPU board plus 90908/90913/91483 sound board plus cassette interface */
-static MACHINE_CONFIG_DERIVED( mcr_91475, mcr_90010 )
+MACHINE_CONFIG_DERIVED(mcr_state::mcr_91475, mcr_90010)
/* video hardware */
MCFG_PALETTE_MODIFY("palette")
@@ -1835,7 +1835,7 @@ MACHINE_CONFIG_END
/* 91490 CPU board plus 90908/90913/91483 sound board */
-static MACHINE_CONFIG_DERIVED( mcr_91490, mcr_90010 )
+MACHINE_CONFIG_DERIVED(mcr_state::mcr_91490, mcr_90010)
/* basic machine hardware */
MCFG_CPU_MODIFY("maincpu")
@@ -1849,7 +1849,7 @@ MACHINE_CONFIG_END
/* 91490 CPU board plus 90908/90913/91483 sound board plus Squawk n' Talk sound board */
-static MACHINE_CONFIG_DERIVED( mcr_91490_snt, mcr_91490 )
+MACHINE_CONFIG_DERIVED(mcr_state::mcr_91490_snt, mcr_91490)
/* basic machine hardware */
MCFG_SOUND_ADD("snt", MIDWAY_SQUAWK_N_TALK, 0)
@@ -1859,7 +1859,7 @@ MACHINE_CONFIG_END
/* 91490 CPU board plus 90908/90913/91483 sound board plus Squawk n' Talk sound board plus IPU */
-static MACHINE_CONFIG_DERIVED( mcr_91490_ipu, mcr_91490_snt )
+MACHINE_CONFIG_DERIVED(mcr_nflfoot_state::mcr_91490_ipu, mcr_91490_snt)
/* basic machine hardware */
MCFG_CPU_ADD("ipu", Z80, 7372800/2)
@@ -1886,7 +1886,7 @@ MACHINE_CONFIG_END
/* 91490 CPU board plus 90908/90913/91483 sound board plus Turbo Cheap Squeak sound board */
-static MACHINE_CONFIG_DERIVED( mcr_91490_tcs, mcr_91490 )
+MACHINE_CONFIG_DERIVED(mcr_state::mcr_91490_tcs, mcr_91490)
/* basic machine hardware */
MCFG_SOUND_ADD("tcs", MIDWAY_TURBO_CHEAP_SQUEAK, 0)