summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gticlub.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/gticlub.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/gticlub.cpp')
-rw-r--r--src/mame/drivers/gticlub.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mame/drivers/gticlub.cpp b/src/mame/drivers/gticlub.cpp
index 985218b3126..3f3bbd83c2b 100644
--- a/src/mame/drivers/gticlub.cpp
+++ b/src/mame/drivers/gticlub.cpp
@@ -329,6 +329,10 @@ public:
uint32_t screen_update_gticlub(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
uint32_t screen_update_hangplt(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ void thunderh(machine_config &config);
+ void hangplt(machine_config &config);
+ void slrasslt(machine_config &config);
+ void gticlub(machine_config &config);
private:
void gticlub_led_setreg(int offset, uint8_t data);
@@ -934,7 +938,7 @@ uint32_t gticlub_state::screen_update_hangplt(screen_device &screen, bitmap_rgb3
return 0;
}
-static MACHINE_CONFIG_START( gticlub )
+MACHINE_CONFIG_START(gticlub_state::gticlub)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", PPC403GA, XTAL_64MHz/2) /* PowerPC 403GA 32MHz */
@@ -1007,7 +1011,7 @@ static MACHINE_CONFIG_START( gticlub )
MCFG_KONPPC_CGBOARD_TYPE(GTICLUB)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( thunderh, gticlub )
+MACHINE_CONFIG_DERIVED(gticlub_state::thunderh, gticlub)
MCFG_DEVICE_REMOVE("adc1038")
MCFG_DEVICE_ADD("adc1038", ADC1038, 0)
@@ -1019,7 +1023,7 @@ static MACHINE_CONFIG_DERIVED( thunderh, gticlub )
MCFG_K056230_HACK(1)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( slrasslt, gticlub )
+MACHINE_CONFIG_DERIVED(gticlub_state::slrasslt, gticlub)
MCFG_DEVICE_REMOVE("adc1038")
MCFG_DEVICE_ADD("adc1038", ADC1038, 0)
@@ -1041,7 +1045,7 @@ MACHINE_RESET_MEMBER(gticlub_state,hangplt)
m_dsp2->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
}
-static MACHINE_CONFIG_START( hangplt )
+MACHINE_CONFIG_START(gticlub_state::hangplt)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", PPC403GA, XTAL_64MHz/2) /* PowerPC 403GA 32MHz */