summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/nightgal.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/nightgal.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/nightgal.cpp')
-rw-r--r--src/mame/drivers/nightgal.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mame/drivers/nightgal.cpp b/src/mame/drivers/nightgal.cpp
index 14c63d7cae2..db470669781 100644
--- a/src/mame/drivers/nightgal.cpp
+++ b/src/mame/drivers/nightgal.cpp
@@ -102,6 +102,11 @@ public:
DECLARE_PALETTE_INIT(nightgal);
uint32_t screen_update_nightgal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ void ngalsumr(machine_config &config);
+ void sexygal(machine_config &config);
+ void sweetgal(machine_config &config);
+ void sgaltrop(machine_config &config);
+ void royalqn(machine_config &config);
protected:
required_ioport m_io_cr_clear;
required_ioport m_io_coins;
@@ -735,7 +740,7 @@ void nightgal_state::machine_reset()
memset(m_blit_raw_data, 0, ARRAY_LENGTH(m_blit_raw_data));
}
-static MACHINE_CONFIG_START( royalqn )
+MACHINE_CONFIG_START(nightgal_state::royalqn)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", Z80,MASTER_CLOCK / 8) /* ? MHz */
@@ -768,7 +773,7 @@ static MACHINE_CONFIG_START( royalqn )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( sexygal, royalqn )
+MACHINE_CONFIG_DERIVED(nightgal_state::sexygal, royalqn)
/* basic machine hardware */
MCFG_CPU_MODIFY("maincpu")
@@ -791,7 +796,7 @@ static MACHINE_CONFIG_DERIVED( sexygal, royalqn )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( sweetgal, sexygal )
+MACHINE_CONFIG_DERIVED(nightgal_state::sweetgal, sexygal)
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(sweetgal_map)
@@ -799,14 +804,14 @@ static MACHINE_CONFIG_DERIVED( sweetgal, sexygal )
MCFG_DEVICE_REMOVE("audiocpu")
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( ngalsumr, royalqn )
+MACHINE_CONFIG_DERIVED(nightgal_state::ngalsumr, royalqn)
MCFG_CPU_MODIFY("maincpu")
// TODO: happens from protection device
MCFG_CPU_PERIODIC_INT_DRIVER(nightgal_state, nmi_line_pulse, 60)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( sgaltrop, sexygal )
+MACHINE_CONFIG_DERIVED(nightgal_state::sgaltrop, sexygal)
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_IO_MAP(sgaltrop_io)