diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2017-05-23 18:58:14 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2017-05-23 18:58:14 +0200 |
commit | 3f44d746de4e98a3f4b8d47d5676342a630e9477 (patch) | |
tree | c1788987f9705863523388c3c526cf64bd045df7 /src/mame/audio/efo_zsu.cpp | |
parent | 099dd26e890e8706302d71a8a90d4c7400b399c0 (diff) |
a start at moving mame/audio devices to use device_add_mconfig insted of device_mconfig_additions (nw)
Diffstat (limited to 'src/mame/audio/efo_zsu.cpp')
-rw-r--r-- | src/mame/audio/efo_zsu.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/mame/audio/efo_zsu.cpp b/src/mame/audio/efo_zsu.cpp index 66b31213dcd..4a590b85695 100644 --- a/src/mame/audio/efo_zsu.cpp +++ b/src/mame/audio/efo_zsu.cpp @@ -187,8 +187,7 @@ TIMER_CALLBACK_MEMBER(cedar_magnet_sound_device::reset_assert_callback) } - -static MACHINE_CONFIG_START( efo_zsu ) +MACHINE_CONFIG_MEMBER( efo_zsu_device::device_add_mconfig ) MCFG_CPU_ADD("soundcpu", Z80, 4000000) MCFG_CPU_PROGRAM_MAP(zsu_map) MCFG_CPU_IO_MAP(zsu_io) @@ -237,8 +236,8 @@ static MACHINE_CONFIG_START( efo_zsu ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END -static MACHINE_CONFIG_START( cedar_magnet_sound ) - MCFG_FRAGMENT_ADD(efo_zsu) +MACHINE_CONFIG_MEMBER( cedar_magnet_sound_device::device_add_mconfig ) + efo_zsu_device::device_add_mconfig(config); MCFG_CPU_MODIFY("soundcpu") MCFG_CPU_PROGRAM_MAP(cedar_magnet_sound_map) @@ -247,16 +246,6 @@ static MACHINE_CONFIG_START( cedar_magnet_sound ) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(cedar_magnet_sound_device, ay0_porta_w)) MACHINE_CONFIG_END -machine_config_constructor efo_zsu_device::device_mconfig_additions() const -{ - return MACHINE_CONFIG_NAME( efo_zsu ); -} - -machine_config_constructor cedar_magnet_sound_device::device_mconfig_additions() const -{ - return MACHINE_CONFIG_NAME( cedar_magnet_sound ); -} - void efo_zsu_device::device_start() { memory_bank *rombank = membank("rombank"); |