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/kchamp.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/kchamp.cpp')
-rw-r--r-- | src/mame/drivers/kchamp.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/kchamp.cpp b/src/mame/drivers/kchamp.cpp index 79f04132c26..70f4bfbf94c 100644 --- a/src/mame/drivers/kchamp.cpp +++ b/src/mame/drivers/kchamp.cpp @@ -384,15 +384,15 @@ INTERRUPT_GEN_MEMBER(kchamp_state::sound_int) } -MACHINE_START_MEMBER(kchamp_state,kchamp) +void kchamp_state::machine_start_kchamp() { save_item(NAME(m_nmi_enable)); save_item(NAME(m_sound_nmi_enable)); } -MACHINE_START_MEMBER(kchamp_state,kchampvs) +void kchamp_state::machine_start_kchampvs() { - MACHINE_START_CALL_MEMBER(kchamp); + machine_start_kchamp(); save_item(NAME(m_msm_play_lo_nibble)); } @@ -421,7 +421,7 @@ MACHINE_CONFIG_START(kchamp_state::kchampvs) MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, kchamp_state, nmi_enable_w)) MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, kchamp_state, sound_reset_w)) - MCFG_MACHINE_START_OVERRIDE(kchamp_state,kchampvs) + set_machine_start_cb(config, driver_callback_delegate(&machine_start_kchampvs, this)); /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -481,7 +481,7 @@ MACHINE_CONFIG_START(kchamp_state::kchamp) MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, kchamp_state, flipscreen_w)) MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, kchamp_state, nmi_enable_w)) - MCFG_MACHINE_START_OVERRIDE(kchamp_state,kchamp) + set_machine_start_cb(config, driver_callback_delegate(&machine_start_kchamp, this)); /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) |