summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/raiden2.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/raiden2.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/raiden2.cpp')
-rw-r--r--src/mame/drivers/raiden2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/raiden2.cpp b/src/mame/drivers/raiden2.cpp
index efb99396e8d..971bfe80df7 100644
--- a/src/mame/drivers/raiden2.cpp
+++ b/src/mame/drivers/raiden2.cpp
@@ -1406,7 +1406,7 @@ GFXDECODE_END
/* MACHINE DRIVERS */
-static MACHINE_CONFIG_START( raiden2 )
+MACHINE_CONFIG_START(raiden2_state::raiden2)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", V30,XTAL_32MHz/2) /* verified on pcb */
@@ -1458,7 +1458,7 @@ static MACHINE_CONFIG_START( raiden2 )
MCFG_SEIBU_SOUND_YM_WRITE_CB(DEVWRITE8("ymsnd", ym2151_device, write))
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( xsedae, raiden2 )
+MACHINE_CONFIG_DERIVED(raiden2_state::xsedae, raiden2)
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(xsedae_mem)
@@ -1469,7 +1469,7 @@ static MACHINE_CONFIG_DERIVED( xsedae, raiden2 )
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0, 32*8-1)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( raidendx, raiden2 )
+MACHINE_CONFIG_DERIVED(raiden2_state::raidendx, raiden2)
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(raidendx_mem)
@@ -1477,7 +1477,7 @@ static MACHINE_CONFIG_DERIVED( raidendx, raiden2 )
MACHINE_CONFIG_END
-static MACHINE_CONFIG_START( zeroteam )
+MACHINE_CONFIG_START(raiden2_state::zeroteam)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", V30,XTAL_32MHz/2) /* verified on pcb */