summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/namcos23.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/namcos23.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/namcos23.cpp')
-rw-r--r--src/mame/drivers/namcos23.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/mame/drivers/namcos23.cpp b/src/mame/drivers/namcos23.cpp
index 66ebe564f04..85ab3a0bdf0 100644
--- a/src/mame/drivers/namcos23.cpp
+++ b/src/mame/drivers/namcos23.cpp
@@ -1597,6 +1597,13 @@ public:
void render_project(poly_vertex &pv);
void render_one_model(const namcos23_render_entry *re);
void render_run(bitmap_rgb32 &bitmap);
+ void timecrs2v4a(machine_config &config);
+ void ss23e2(machine_config &config);
+ void gorgon(machine_config &config);
+ void ss23(machine_config &config);
+ void s23(machine_config &config);
+ void gmen(machine_config &config);
+ void timecrs2(machine_config &config);
};
@@ -3536,7 +3543,7 @@ static GFXDECODE_START( namcos23 )
GFXDECODE_END
-static MACHINE_CONFIG_START( gorgon )
+MACHINE_CONFIG_START(namcos23_state::gorgon)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", R4650BE, BUSCLOCK*4)
@@ -3602,7 +3609,7 @@ static MACHINE_CONFIG_START( gorgon )
MACHINE_CONFIG_END
-static MACHINE_CONFIG_START( s23 )
+MACHINE_CONFIG_START(namcos23_state::s23)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", R4650BE, BUSCLOCK*4)
@@ -3667,14 +3674,14 @@ static MACHINE_CONFIG_START( s23 )
MCFG_SOUND_ROUTE(3, "lspeaker", 1.00)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( timecrs2, s23 )
+MACHINE_CONFIG_DERIVED(namcos23_state::timecrs2, s23)
/* basic machine hardware */
MCFG_CPU_MODIFY("iocpu")
MCFG_CPU_PROGRAM_MAP( timecrs2iobrdmap )
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( gmen, s23 )
+MACHINE_CONFIG_DERIVED(namcos23_state::gmen, s23)
/* basic machine hardware */
MCFG_CPU_MODIFY("maincpu")
@@ -3688,7 +3695,7 @@ static MACHINE_CONFIG_DERIVED( gmen, s23 )
MACHINE_CONFIG_END
-static MACHINE_CONFIG_START( ss23 )
+MACHINE_CONFIG_START(namcos23_state::ss23)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", R4650BE, BUSCLOCK*5)
@@ -3744,7 +3751,7 @@ static MACHINE_CONFIG_START( ss23 )
MCFG_SOUND_ROUTE(3, "lspeaker", 1.00)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( timecrs2v4a, ss23 )
+MACHINE_CONFIG_DERIVED(namcos23_state::timecrs2v4a, ss23)
/* basic machine hardware */
MCFG_CPU_ADD("iocpu", H83334, JVSCLOCK )
MCFG_CPU_PROGRAM_MAP( timecrs2iobrdmap )
@@ -3756,7 +3763,7 @@ static MACHINE_CONFIG_DERIVED( timecrs2v4a, ss23 )
MCFG_H8_SCI_TX_CALLBACK(DEVWRITELINE(":iocpu:sci0", h8_sci_device, rx_w))
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( ss23e2, ss23 )
+MACHINE_CONFIG_DERIVED(namcos23_state::ss23e2, ss23)
/* basic machine hardware */
MCFG_CPU_MODIFY("maincpu")