diff options
author | MooglyGuy <therealmogminer@gmail.com> | 2018-05-16 09:37:54 +0200 |
---|---|---|
committer | mooglyguy <therealmogminer@gmail.com> | 2018-05-16 11:58:08 +0200 |
commit | c83e2a853d4e1643fcc85b68ada3c6f7f33adea4 (patch) | |
tree | 39b249e1a0a9b2056e9815d0a284fd483338362c /src/mame/drivers/namcofl.cpp | |
parent | 2242ff00893a83a113150609bd525f098d632e8d (diff) |
- Removed MACHINE/SOUND/VIDEO _START/_RESET macros. This has the side effect of making machine-config overrides of these much
uglier, but this is intended to discourage ongoing use, and will be gradually eliminated.
Diffstat (limited to 'src/mame/drivers/namcofl.cpp')
-rw-r--r-- | src/mame/drivers/namcofl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/namcofl.cpp b/src/mame/drivers/namcofl.cpp index 285cc731d61..8fc1f906321 100644 --- a/src/mame/drivers/namcofl.cpp +++ b/src/mame/drivers/namcofl.cpp @@ -552,7 +552,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(namcofl_state::mcu_adc_cb) } -MACHINE_START_MEMBER(namcofl_state,namcofl) +void namcofl_state::machine_start_namcofl() { m_raster_interrupt_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(namcofl_state::raster_interrupt_callback),this)); m_network_interrupt_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(namcofl_state::network_interrupt_callback),this)); @@ -568,7 +568,7 @@ MACHINE_START_MEMBER(namcofl_state,namcofl) } -MACHINE_RESET_MEMBER(namcofl_state,namcofl) +void namcofl_state::machine_reset_namcofl() { m_network_interrupt_timer->adjust(m_screen->time_until_pos(m_screen->visible_area().max_y + 3)); m_vblank_interrupt_timer->adjust(m_screen->time_until_pos(m_screen->visible_area().max_y + 1)); @@ -592,8 +592,8 @@ MACHINE_CONFIG_START(namcofl_state::namcofl) MCFG_TIMER_DRIVER_ADD_PERIODIC("mcu_irq2", namcofl_state, mcu_irq2_cb, attotime::from_hz(60)) MCFG_TIMER_DRIVER_ADD_PERIODIC("mcu_adc", namcofl_state, mcu_adc_cb, attotime::from_hz(60)) - MCFG_MACHINE_START_OVERRIDE(namcofl_state,namcofl) - MCFG_MACHINE_RESET_OVERRIDE(namcofl_state,namcofl) + set_machine_start_cb(config, driver_callback_delegate(&machine_start_namcofl, this)); + set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_namcofl, this)); MCFG_NVRAM_ADD_1FILL("nvram") MCFG_SCREEN_ADD("screen", RASTER) @@ -610,7 +610,7 @@ MACHINE_CONFIG_START(namcofl_state::namcofl) MCFG_DEVICE_ADD("c116", NAMCO_C116, 0) MCFG_GFX_PALETTE("palette") - MCFG_VIDEO_START_OVERRIDE(namcofl_state,namcofl) + set_video_start_cb(config, driver_callback_delegate(&video_start_namcofl, this)); SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); |