diff options
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 |
commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/play_2.cpp | |
parent | 9f383f76ce6f00cc3320e5ba53dc323781e0077b (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/play_2.cpp')
-rw-r--r-- | src/mame/drivers/play_2.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/play_2.cpp b/src/mame/drivers/play_2.cpp index a63f90002aa..dc7cbb270c7 100644 --- a/src/mame/drivers/play_2.cpp +++ b/src/mame/drivers/play_2.cpp @@ -79,6 +79,8 @@ public: DECLARE_READ8_MEMBER(sound_in_r); DECLARE_DRIVER_INIT(zira); + void play_2(machine_config &config); + void zira(machine_config &config); private: uint16_t m_clockcnt; uint16_t m_resetcnt; @@ -351,7 +353,7 @@ WRITE8_MEMBER( play_2_state::psg_w ) } // **************** Machine ***************************** -static MACHINE_CONFIG_START( play_2 ) +MACHINE_CONFIG_START(play_2_state::play_2) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", CDP1802, XTAL_2_95MHz) MCFG_CPU_PROGRAM_MAP(play_2_map) @@ -390,7 +392,7 @@ static MACHINE_CONFIG_START( play_2 ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( zira, play_2 ) +MACHINE_CONFIG_DERIVED(play_2_state::zira, play_2) MCFG_CPU_ADD("cop402", COP402, XTAL_2MHz) MCFG_CPU_PROGRAM_MAP(zira_sound_map) MCFG_COP400_CONFIG( COP400_CKI_DIVISOR_16, COP400_CKO_OSCILLATOR_OUTPUT, false ) |