diff options
author | Vas Crabb <vas@vastheman.com> | 2018-05-08 07:35:22 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-05-08 07:35:22 +1000 |
commit | 4ef4464aec13029fa7e394671743e9ea96394528 (patch) | |
tree | 757cd23c65c626d63f4c98afb366362f4c2d6bdb /src/mame/drivers/m79amb.cpp | |
parent | 765d625ac78ea14cec1e1a84c56567d980924869 (diff) |
Add support for custom device constructors when replacing devices.
Current syntax: MCFG_DEVICE_REPLACE(tag_or_finder, TYPE, ...)
Next-generation syntax: TYPE(config.replace(), tag_or_finder, ...)
(nw) Kill off some more low-value macros that aren't needed any more,
and get rid of the token-pasting voodoo and casts in the discrete sound
macros.
Diffstat (limited to 'src/mame/drivers/m79amb.cpp')
-rw-r--r-- | src/mame/drivers/m79amb.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mame/drivers/m79amb.cpp b/src/mame/drivers/m79amb.cpp index dc953c96e06..c2145dad509 100644 --- a/src/mame/drivers/m79amb.cpp +++ b/src/mame/drivers/m79amb.cpp @@ -212,9 +212,7 @@ MACHINE_CONFIG_START(m79amb_state::m79amb) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_DEVICE_ADD("discrete", DISCRETE) - MCFG_DISCRETE_INTF(m79amb) - + MCFG_DEVICE_ADD("discrete", DISCRETE, m79amb_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END |