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/suna8.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/suna8.cpp')
-rw-r--r-- | src/mame/drivers/suna8.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/suna8.cpp b/src/mame/drivers/suna8.cpp index 29c70849241..9177ee5a569 100644 --- a/src/mame/drivers/suna8.cpp +++ b/src/mame/drivers/suna8.cpp @@ -1904,7 +1904,7 @@ MACHINE_CONFIG_START(suna8_state::hardhead) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) - MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_text) + set_video_start_cb(config, driver_callback_delegate(&video_start_suna8_text, this)); /* sound hardware */ SPEAKER(config, "speaker").front_center(); @@ -1963,7 +1963,7 @@ MACHINE_CONFIG_START(suna8_state::rranger) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) - MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_text) + set_video_start_cb(config, driver_callback_delegate(&video_start_suna8_text, this)); /* sound hardware */ SPEAKER(config, "speaker").front_center(); @@ -1992,7 +1992,7 @@ MACHINE_CONFIG_END /* 1 x 24 MHz crystal */ -MACHINE_RESET_MEMBER(suna8_state,brickzn) +void suna8_state::machine_reset_brickzn() { m_protection_val = m_prot2 = m_prot2_prev = 0xff; m_paletteram_enab = 1; // for brickzn11 @@ -2016,7 +2016,7 @@ MACHINE_CONFIG_START(suna8_state::brickzn11) MCFG_DEVICE_PROGRAM_MAP(brickzn_pcm_map) MCFG_DEVICE_IO_MAP(brickzn_pcm_io_map) - MCFG_MACHINE_RESET_OVERRIDE(suna8_state, brickzn ) + set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_brickzn, this)); /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -2032,7 +2032,7 @@ MACHINE_CONFIG_START(suna8_state::brickzn11) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) - MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_brickzn) + set_video_start_cb(config, driver_callback_delegate(&video_start_suna8_brickzn, this)); /* sound hardware */ SPEAKER(config, "speaker").front_center(); @@ -2083,7 +2083,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(suna8_state::hardhea2_interrupt) if (m_nmi_enable) m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE); } -MACHINE_RESET_MEMBER(suna8_state,hardhea2) +void suna8_state::machine_reset_hardhea2() { address_space &space = m_maincpu->space(AS_PROGRAM); hardhea2_rambank_0_w(space,0,0); @@ -2098,7 +2098,7 @@ MACHINE_CONFIG_START(suna8_state::hardhea2) MCFG_DEVICE_OPCODES_MAP(decrypted_opcodes_map) MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", suna8_state, hardhea2_interrupt, "screen", 0, 1) - MCFG_MACHINE_RESET_OVERRIDE(suna8_state,hardhea2) + set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_hardhea2, this)); MCFG_PALETTE_MODIFY("palette") MCFG_PALETTE_ENTRIES(256) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) @@ -2146,7 +2146,7 @@ MACHINE_CONFIG_START(suna8_state::starfigh) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) - MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_starfigh) + set_video_start_cb(config, driver_callback_delegate(&video_start_suna8_starfigh, this)); /* sound hardware */ SPEAKER(config, "speaker").front_center(); @@ -2200,7 +2200,7 @@ MACHINE_CONFIG_START(suna8_state::sparkman) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) - MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_sparkman) + set_video_start_cb(config, driver_callback_delegate(&video_start_suna8_sparkman, this)); /* sound hardware */ SPEAKER(config, "speaker").front_center(); |