summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/spaceg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/spaceg.cpp')
-rw-r--r--src/mame/drivers/spaceg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/spaceg.cpp b/src/mame/drivers/spaceg.cpp
index 6d170f73c52..7526d6ab6c3 100644
--- a/src/mame/drivers/spaceg.cpp
+++ b/src/mame/drivers/spaceg.cpp
@@ -509,8 +509,8 @@ INPUT_PORTS_END
MACHINE_CONFIG_START(spaceg_state::spaceg)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80,2500000) /* 2.5 MHz */
- MCFG_CPU_PROGRAM_MAP(spaceg_map)
+ MCFG_DEVICE_ADD("maincpu", Z80,2500000) /* 2.5 MHz */
+ MCFG_DEVICE_PROGRAM_MAP(spaceg_map)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -529,7 +529,7 @@ MACHINE_CONFIG_START(spaceg_state::spaceg)
MCFG_SPEAKER_STANDARD_MONO("mono")
// HACK: SN76477 parameters copied from space invaders
- MCFG_SOUND_ADD("snsnd", SN76477, 0)
+ MCFG_DEVICE_ADD("snsnd", SN76477)
MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C
MCFG_SN76477_DECAY_RES(0) // decay_res: N/C
MCFG_SN76477_ATTACK_PARAMS(0, RES_K(100)) // attack_decay_cap + attack_res
@@ -546,7 +546,7 @@ MACHINE_CONFIG_START(spaceg_state::spaceg)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
// HACK: samples copied from space invaders
- MCFG_SOUND_ADD("samples", SAMPLES, 0)
+ MCFG_DEVICE_ADD("samples", SAMPLES)
MCFG_SAMPLES_CHANNELS(6)
MCFG_SAMPLES_NAMES(invaders_sample_names)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)