diff options
Diffstat (limited to 'src/mame/drivers/thunderx.cpp')
-rw-r--r-- | src/mame/drivers/thunderx.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mame/drivers/thunderx.cpp b/src/mame/drivers/thunderx.cpp index a9fe79af424..952a598388c 100644 --- a/src/mame/drivers/thunderx.cpp +++ b/src/mame/drivers/thunderx.cpp @@ -665,14 +665,14 @@ MACHINE_CONFIG_START(thunderx_state::scontra) MCFG_PALETTE_ENABLE_SHADOWS() MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) - MCFG_DEVICE_ADD("k052109", K052109, 0) - MCFG_GFX_PALETTE("palette") - MCFG_K052109_CB(thunderx_state, tile_callback) + K052109(config, m_k052109, 0); + m_k052109->set_palette(m_palette); + m_k052109->set_tile_callback(FUNC(thunderx_state::tile_callback), this); - MCFG_DEVICE_ADD("k051960", K051960, 0) - MCFG_GFX_PALETTE("palette") - MCFG_K051960_SCREEN_TAG("screen") - MCFG_K051960_CB(thunderx_state, sprite_callback) + K051960(config, m_k051960, 0); + m_k051960->set_palette(m_palette); + m_k051960->set_screen_tag("screen"); + m_k051960->set_sprite_callback(FUNC(thunderx_state::sprite_callback), this); /* sound hardware */ SPEAKER(config, "mono").front_center(); @@ -718,8 +718,7 @@ MACHINE_CONFIG_START(thunderx_state::gbusters) MCFG_DEVICE_PROGRAM_MAP(gbusters_map) MCFG_KONAMICPU_LINE_CB(WRITE8(*this, thunderx_state, banking_callback)) - MCFG_DEVICE_MODIFY("k052109") - MCFG_K052109_CB(thunderx_state, gbusters_tile_callback) + m_k052109->set_tile_callback(FUNC(thunderx_state::gbusters_tile_callback), this); MACHINE_CONFIG_END |