summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/silvmil.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-01-07 22:20:14 +0100
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-01-17 16:11:18 +0100
commitd469cc04bcace0f601802301caeddc5b473b75f2 (patch) (github)
treea9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/silvmil.cpp
parent9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff)
downloadmame-d469cc04bcace0f601802301caeddc5b473b75f2.tar.bz2
mame-d469cc04bcace0f601802301caeddc5b473b75f2.zip
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/silvmil.cpp')
-rw-r--r--src/mame/drivers/silvmil.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/silvmil.cpp b/src/mame/drivers/silvmil.cpp
index d77d20c49c7..c4830c1c4e0 100644
--- a/src/mame/drivers/silvmil.cpp
+++ b/src/mame/drivers/silvmil.cpp
@@ -132,6 +132,9 @@ public:
virtual void video_start() override;
uint32_t screen_update_silvmil(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void tumblepb_gfx1_rearrange();
+ void puzzlovek(machine_config &config);
+ void puzzlove(machine_config &config);
+ void silvmil(machine_config &config);
};
@@ -395,7 +398,7 @@ static ADDRESS_MAP_START( silvmil_sound_map, AS_PROGRAM, 8, silvmil_state )
ADDRESS_MAP_END
-static MACHINE_CONFIG_START( silvmil )
+MACHINE_CONFIG_START(silvmil_state::silvmil)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M68000, XTAL_12MHz) /* Verified */
@@ -438,7 +441,7 @@ static MACHINE_CONFIG_START( silvmil )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( puzzlove, silvmil )
+MACHINE_CONFIG_DERIVED(silvmil_state::puzzlove, silvmil)
MCFG_DEVICE_REMOVE("audiocpu")
MCFG_CPU_ADD("audiocpu", Z80, XTAL_4MHz) /* Verified */
MCFG_CPU_PROGRAM_MAP(silvmil_sound_map)
@@ -451,7 +454,7 @@ static MACHINE_CONFIG_DERIVED( puzzlove, silvmil )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( puzzlovek, puzzlove )
+MACHINE_CONFIG_DERIVED(silvmil_state::puzzlovek, puzzlove)
MCFG_DEVICE_REMOVE("ymsnd")
MCFG_YM2151_ADD("ymsnd", XTAL_15MHz/4) /* Verified */
MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0))