summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/lemmings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/lemmings.cpp')
-rw-r--r--src/mame/drivers/lemmings.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/lemmings.cpp b/src/mame/drivers/lemmings.cpp
index 3f77422ca1f..2979ab43514 100644
--- a/src/mame/drivers/lemmings.cpp
+++ b/src/mame/drivers/lemmings.cpp
@@ -239,20 +239,20 @@ MACHINE_CONFIG_START(lemmings_state::lemmings)
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(XBGR)
- MCFG_DEVICE_ADD("spritegen1", DECO_SPRITE, 0)
- MCFG_DECO_SPRITE_GFX_REGION(1)
- MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
-
- MCFG_DEVICE_ADD("spritegen2", DECO_SPRITE, 0)
- MCFG_DECO_SPRITE_GFX_REGION(0)
- MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
-
- MCFG_DECO146_ADD("ioprot")
- MCFG_DECO146_IN_PORTA_CB(IOPORT("INPUTS"))
- MCFG_DECO146_IN_PORTB_CB(IOPORT("SYSTEM"))
- MCFG_DECO146_IN_PORTC_CB(IOPORT("DSW"))
- MCFG_DECO146_SET_USE_MAGIC_ADDRESS_XOR
- MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 1))
+ DECO_SPRITE(config, m_sprgen[0], 0);
+ m_sprgen[0]->set_gfx_region(1);
+ m_sprgen[0]->set_gfxdecode_tag(m_gfxdecode);
+
+ DECO_SPRITE(config, m_sprgen[1], 0);
+ m_sprgen[1]->set_gfx_region(0);
+ m_sprgen[1]->set_gfxdecode_tag(m_gfxdecode);
+
+ DECO146PROT(config, m_deco146, 0);
+ m_deco146->port_a_cb().set_ioport("INPUTS");
+ m_deco146->port_b_cb().set_ioport("SYSTEM");
+ m_deco146->port_c_cb().set_ioport("DSW");
+ m_deco146->set_use_magic_read_address_xor(true);
+ m_deco146->soundlatch_irq_cb().set_inputline(m_audiocpu, 1);
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();