summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/powerins.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/powerins.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/powerins.cpp')
-rw-r--r--src/mame/drivers/powerins.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/powerins.cpp b/src/mame/drivers/powerins.cpp
index db8a051c7ce..fa1ea6c623d 100644
--- a/src/mame/drivers/powerins.cpp
+++ b/src/mame/drivers/powerins.cpp
@@ -295,7 +295,7 @@ MACHINE_START_MEMBER(powerins_state, powerinsa)
membank("okibank")->configure_entries(0, 5, memregion("oki1")->base() + 0x30000, 0x10000);
}
-static MACHINE_CONFIG_START( powerins )
+MACHINE_CONFIG_START(powerins_state::powerins)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M68000, 12000000) /* 12MHz */
@@ -341,7 +341,7 @@ static MACHINE_CONFIG_START( powerins )
MCFG_NMK112_ROM1("oki2")
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( powerinsa, powerins )
+MACHINE_CONFIG_DERIVED(powerins_state::powerinsa, powerins)
/* basic machine hardware */
@@ -364,7 +364,7 @@ static MACHINE_CONFIG_DERIVED( powerinsa, powerins )
MCFG_DEVICE_REMOVE("nmk112")
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( powerinsb, powerins )
+MACHINE_CONFIG_DERIVED(powerins_state::powerinsb, powerins)
/* basic machine hardware */