diff options
Diffstat (limited to 'src/mame/drivers/powerbal.cpp')
-rw-r--r-- | src/mame/drivers/powerbal.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/powerbal.cpp b/src/mame/drivers/powerbal.cpp index 89ec8d99bab..46b92ae4347 100644 --- a/src/mame/drivers/powerbal.cpp +++ b/src/mame/drivers/powerbal.cpp @@ -45,10 +45,10 @@ private: int m_bg_yoffset; TILE_GET_INFO_MEMBER(powerbal_get_bg_tile_info); - void machine_start_powerbal() ATTR_COLD; - void machine_reset_powerbal(); - void video_start_powerbal() ATTR_COLD; - void video_start_atombjt() ATTR_COLD; + DECLARE_MACHINE_START(powerbal); + DECLARE_MACHINE_RESET(powerbal); + DECLARE_VIDEO_START(powerbal); + DECLARE_VIDEO_START(atombjt); uint32_t screen_update_powerbal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites_powerbal( bitmap_ind16 &bitmap, const rectangle &cliprect ); DECLARE_WRITE16_MEMBER(magicstk_coin_eeprom_w); @@ -555,7 +555,7 @@ void powerbal_state::draw_sprites_powerbal(bitmap_ind16 &bitmap, const rectangle } } -void powerbal_state::video_start_powerbal() +VIDEO_START_MEMBER(powerbal_state,powerbal) { m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(powerbal_state::powerbal_get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 32); @@ -564,7 +564,7 @@ void powerbal_state::video_start_powerbal() m_bg_tilemap->set_scrolly(0, m_bg_yoffset); } -void powerbal_state::video_start_atombjt() +VIDEO_START_MEMBER(powerbal_state,atombjt) { m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(powerbal_state::powerbal_get_bg_tile_info),this), TILEMAP_SCAN_COLS, 8, 8, 64, 32); @@ -614,12 +614,12 @@ GFXDECODE_END -void powerbal_state::machine_start_powerbal() +MACHINE_START_MEMBER(powerbal_state,powerbal) { save_item(NAME(m_tilebank)); } -void powerbal_state::machine_reset_powerbal() +MACHINE_RESET_MEMBER(powerbal_state,powerbal) { m_tilebank = 0; configure_oki_banks(); @@ -632,8 +632,8 @@ MACHINE_CONFIG_START(powerbal_state::powerbal) MCFG_DEVICE_PROGRAM_MAP(powerbal_main_map) MCFG_DEVICE_VBLANK_INT_DRIVER("screen", powerbal_state, irq2_line_hold) - set_machine_start_cb(config, driver_callback_delegate(&machine_start_powerbal, this)); - set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_powerbal, this)); + MCFG_MACHINE_START_OVERRIDE(powerbal_state,powerbal) + MCFG_MACHINE_RESET_OVERRIDE(powerbal_state,powerbal) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -648,7 +648,7 @@ MACHINE_CONFIG_START(powerbal_state::powerbal) MCFG_PALETTE_ADD("palette", 512) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx) - set_video_start_cb(config, driver_callback_delegate(&video_start_powerbal, this)); + MCFG_VIDEO_START_OVERRIDE(powerbal_state,powerbal) /* sound hardware */ SPEAKER(config, "mono").front_center(); @@ -668,8 +668,8 @@ MACHINE_CONFIG_START(powerbal_state::magicstk) MCFG_EEPROM_SERIAL_93C46_ADD("eeprom") MCFG_EEPROM_SERIAL_DEFAULT_VALUE(0) - set_machine_start_cb(config, driver_callback_delegate(&machine_start_powerbal, this)); - set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_powerbal, this)); + MCFG_MACHINE_START_OVERRIDE(powerbal_state,powerbal) + MCFG_MACHINE_RESET_OVERRIDE(powerbal_state,powerbal) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -684,7 +684,7 @@ MACHINE_CONFIG_START(powerbal_state::magicstk) MCFG_PALETTE_ADD("palette", 512) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx) - set_video_start_cb(config, driver_callback_delegate(&video_start_powerbal, this)); + MCFG_VIDEO_START_OVERRIDE(powerbal_state,powerbal) /* sound hardware */ SPEAKER(config, "mono").front_center(); @@ -706,7 +706,7 @@ MACHINE_CONFIG_START(powerbal_state::atombjt) MCFG_SCREEN_SIZE(512, 256) \ MCFG_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) \ - set_video_start_cb(config, driver_callback_delegate(&video_start_atombjt, this)); + MCFG_VIDEO_START_OVERRIDE(powerbal_state,atombjt) MACHINE_CONFIG_END /* |