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/shangkid.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/shangkid.cpp')
-rw-r--r-- | src/mame/drivers/shangkid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/shangkid.cpp b/src/mame/drivers/shangkid.cpp index de83c1c82f1..8c6ce3e9452 100644 --- a/src/mame/drivers/shangkid.cpp +++ b/src/mame/drivers/shangkid.cpp @@ -191,7 +191,7 @@ void shangkid_state::init_shangkid() /***************************************************************************************/ -MACHINE_RESET_MEMBER(shangkid_state,shangkid) +void shangkid_state::machine_reset_shangkid() { membank("bank2")->set_entry(0); } @@ -415,7 +415,7 @@ MACHINE_CONFIG_START(shangkid_state::chinhero) MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_chinhero) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) - MCFG_VIDEO_START_OVERRIDE(shangkid_state,shangkid) + set_video_start_cb(config, driver_callback_delegate(&video_start_shangkid, this)); /* sound hardware */ SPEAKER(config, "speaker").front_center(); @@ -450,7 +450,7 @@ MACHINE_CONFIG_START(shangkid_state::shangkid) MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(INPUTLINE("audiocpu", INPUT_LINE_RESET)) MCFG_DEVCB_INVERT MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(MEMBANK("bank1")) - MCFG_MACHINE_RESET_OVERRIDE(shangkid_state,shangkid) + set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_shangkid, this)); /* video hardware */ MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_shangkid) |