diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2021-06-26 07:49:16 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2021-06-26 07:49:16 +0200 |
commit | d83bc728f57724c850d44480c4d7b388576d5bab (patch) | |
tree | dad01b366624075f6fb48b222ee581fa594a9600 | |
parent | c57f9160c66e7137392894fde36a904b5d7321e8 (diff) |
atarig1.cpp, atarig42.cpp, blstroid.cpp, blueprnt.cpp, eolith.cpp, galspnbl.cpp, igs_fear.cpp, megaplay.cpp, vegaeo.cpp: removed some unneeded VIDEO_START_OVERRIDEs
-rw-r--r-- | src/mame/drivers/atarig1.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/atarig42.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/blstroid.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/blueprnt.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/eolith.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/galspnbl.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/igs_fear.cpp | 9 | ||||
-rw-r--r-- | src/mame/drivers/megaplay.cpp | 1 | ||||
-rw-r--r-- | src/mame/drivers/vegaeo.cpp | 2 | ||||
-rw-r--r-- | src/mame/includes/atarig1.h | 33 | ||||
-rw-r--r-- | src/mame/includes/atarig42.h | 2 | ||||
-rw-r--r-- | src/mame/includes/blstroid.h | 2 | ||||
-rw-r--r-- | src/mame/includes/blueprnt.h | 12 | ||||
-rw-r--r-- | src/mame/includes/eolith.h | 3 | ||||
-rw-r--r-- | src/mame/includes/galspnbl.h | 4 | ||||
-rw-r--r-- | src/mame/video/atarig1.cpp | 2 | ||||
-rw-r--r-- | src/mame/video/atarig42.cpp | 2 | ||||
-rw-r--r-- | src/mame/video/blstroid.cpp | 2 | ||||
-rw-r--r-- | src/mame/video/blueprnt.cpp | 8 | ||||
-rw-r--r-- | src/mame/video/eolith.cpp | 2 | ||||
-rw-r--r-- | src/mame/video/galspnbl.cpp | 2 |
21 files changed, 46 insertions, 52 deletions
diff --git a/src/mame/drivers/atarig1.cpp b/src/mame/drivers/atarig1.cpp index 411ead494d3..7a8623307fd 100644 --- a/src/mame/drivers/atarig1.cpp +++ b/src/mame/drivers/atarig1.cpp @@ -376,8 +376,6 @@ void atarig1_state::atarig1(machine_config &config) m_screen->set_palette("palette"); m_screen->screen_vblank().set_inputline(m_maincpu, M68K_IRQ_1, ASSERT_LINE); - MCFG_VIDEO_START_OVERRIDE(atarig1_state,atarig1) - /* sound hardware */ SPEAKER(config, "mono").front_center(); diff --git a/src/mame/drivers/atarig42.cpp b/src/mame/drivers/atarig42.cpp index c3a0b3817dd..2b03429456d 100644 --- a/src/mame/drivers/atarig42.cpp +++ b/src/mame/drivers/atarig42.cpp @@ -542,8 +542,6 @@ void atarig42_state::atarig42(machine_config &config) m_screen->set_palette("palette"); m_screen->screen_vblank().set_inputline(m_maincpu, M68K_IRQ_4, ASSERT_LINE); - MCFG_VIDEO_START_OVERRIDE(atarig42_state,atarig42) - /* sound hardware */ SPEAKER(config, "mono").front_center(); diff --git a/src/mame/drivers/blstroid.cpp b/src/mame/drivers/blstroid.cpp index 6c0297bd625..d9a3fb5289d 100644 --- a/src/mame/drivers/blstroid.cpp +++ b/src/mame/drivers/blstroid.cpp @@ -210,8 +210,6 @@ void blstroid_state::blstroid(machine_config &config) m_screen->set_palette("palette"); m_screen->screen_vblank().set_inputline(m_maincpu, M68K_IRQ_2, ASSERT_LINE); - MCFG_VIDEO_START_OVERRIDE(blstroid_state,blstroid) - /* sound hardware */ SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); diff --git a/src/mame/drivers/blueprnt.cpp b/src/mame/drivers/blueprnt.cpp index 07343c7bb3a..458abd6288a 100644 --- a/src/mame/drivers/blueprnt.cpp +++ b/src/mame/drivers/blueprnt.cpp @@ -372,8 +372,6 @@ void blueprnt_state::blueprnt(machine_config &config) screen.set_screen_update(FUNC(blueprnt_state::screen_update_blueprnt)); screen.set_palette(m_palette); - MCFG_VIDEO_START_OVERRIDE(blueprnt_state, blueprnt) - GFXDECODE(config, m_gfxdecode, m_palette, gfx_blueprnt); PALETTE(config, m_palette, FUNC(blueprnt_state::blueprnt_palette), 128*4+8); diff --git a/src/mame/drivers/eolith.cpp b/src/mame/drivers/eolith.cpp index 3a73bdc0224..5fb754b8dce 100644 --- a/src/mame/drivers/eolith.cpp +++ b/src/mame/drivers/eolith.cpp @@ -572,8 +572,6 @@ void eolith_state::eolith45(machine_config &config) PALETTE(config, m_palette, palette_device::RGB_555); - MCFG_VIDEO_START_OVERRIDE(eolith_state,eolith) - /* sound hardware */ SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); diff --git a/src/mame/drivers/galspnbl.cpp b/src/mame/drivers/galspnbl.cpp index 61d0d95caf3..95be0a0b795 100644 --- a/src/mame/drivers/galspnbl.cpp +++ b/src/mame/drivers/galspnbl.cpp @@ -233,8 +233,6 @@ void galspnbl_state::galspnbl(machine_config &config) m_screen->set_screen_update(FUNC(galspnbl_state::screen_update_galspnbl)); m_screen->set_palette(m_palette); - MCFG_VIDEO_START_OVERRIDE(galspnbl_state,galspnbl) - GFXDECODE(config, m_gfxdecode, m_palette, gfx_galspnbl); PALETTE(config, m_palette, FUNC(galspnbl_state::galspnbl_palette)).set_format(palette_device::xBGR_444, 1024 + 32768); diff --git a/src/mame/drivers/igs_fear.cpp b/src/mame/drivers/igs_fear.cpp index 16929d0fd85..dadfc11e395 100644 --- a/src/mame/drivers/igs_fear.cpp +++ b/src/mame/drivers/igs_fear.cpp @@ -25,10 +25,11 @@ public: void init_igs_fear(); +protected: + virtual void video_start() override; + private: DECLARE_WRITE_LINE_MEMBER(sound_irq); - //virtual void video_start(); - virtual void video_start_igs_fear(); uint32_t screen_update_igs_fear(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void pgm_create_dummy_internal_arm_region(); required_device<cpu_device> m_maincpu; @@ -38,7 +39,7 @@ private: }; -void igs_fear_state::video_start_igs_fear() +void igs_fear_state::video_start() { } @@ -94,8 +95,6 @@ void igs_fear_state::igs_fear(machine_config &config) screen.set_screen_update(FUNC(igs_fear_state::screen_update_igs_fear)); screen.set_palette(m_palette); - MCFG_VIDEO_START_OVERRIDE(igs_fear_state, igs_fear) - PALETTE(config, m_palette).set_entries(0x200); GFXDECODE(config, m_gfxdecode, m_palette, gfx_igs_fear); diff --git a/src/mame/drivers/megaplay.cpp b/src/mame/drivers/megaplay.cpp index 5866c3a364b..44c7d428534 100644 --- a/src/mame/drivers/megaplay.cpp +++ b/src/mame/drivers/megaplay.cpp @@ -83,7 +83,6 @@ private: void game_w(uint8_t data); uint8_t vdp1_count_r(offs_t offset); - DECLARE_VIDEO_START(megplay); uint32_t screen_update_megplay(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); void megaplay_bios_io_map(address_map &map); diff --git a/src/mame/drivers/vegaeo.cpp b/src/mame/drivers/vegaeo.cpp index e26c58ea0ef..30405dedb1b 100644 --- a/src/mame/drivers/vegaeo.cpp +++ b/src/mame/drivers/vegaeo.cpp @@ -39,7 +39,7 @@ public: void init_vegaeo(); protected: - void video_start() override; + virtual void video_start() override; private: required_device<generic_latch_8_device> m_soundlatch; diff --git a/src/mame/includes/atarig1.h b/src/mame/includes/atarig1.h index 9b59f019db3..03beb068aef 100644 --- a/src/mame/includes/atarig1.h +++ b/src/mame/includes/atarig1.h @@ -30,6 +30,24 @@ public: m_in1(*this, "IN1"), m_mo_command(*this, "mo_command") { } + void atarig1(machine_config &config); + void pfslap111(machine_config &config); + void pfslap112(machine_config &config); + void pfslap113(machine_config &config); + void pfslap114(machine_config &config); + void pitfightb(machine_config &config); + void hydrap(machine_config &config); + void hydra(machine_config &config); + + void init_hydrap(); + void init_hydra(); + void init_pitfight(); + void init_pitfightb(); + +protected: + virtual void video_start() override; + +private: optional_device<atari_slapstic_device> m_slapstic; optional_memory_bank m_slapstic_bank; required_device<atari_jsa_ii_device> m_jsa; @@ -46,7 +64,7 @@ public: bool m_bslapstic_primed; - int m_pfscroll_xoffset; + uint8_t m_pfscroll_xoffset; uint16_t m_current_control; uint8_t m_playfield_tile_bank; uint16_t m_playfield_xscroll; @@ -59,22 +77,9 @@ public: uint16_t a2d_data_r(); void pitfightb_cheap_slapstic_tweak(offs_t offset); void update_bank(int bank); - void init_hydrap(); - void init_hydra(); - void init_pitfight(); - void init_pitfightb(); TILE_GET_INFO_MEMBER(get_alpha_tile_info); TILE_GET_INFO_MEMBER(get_playfield_tile_info); - DECLARE_VIDEO_START(atarig1); uint32_t screen_update_atarig1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void atarig1(machine_config &config); - void pfslap111(machine_config &config); - void pfslap112(machine_config &config); - void pfslap113(machine_config &config); - void pfslap114(machine_config &config); - void pitfightb(machine_config &config); - void hydrap(machine_config &config); - void hydra(machine_config &config); void main_map(address_map &map); void pitfight_map(address_map &map); void hydra_map(address_map &map); diff --git a/src/mame/includes/atarig42.h b/src/mame/includes/atarig42.h index 155585e2d5e..10593d42166 100644 --- a/src/mame/includes/atarig42.h +++ b/src/mame/includes/atarig42.h @@ -35,6 +35,7 @@ public: protected: virtual void machine_start() override; + virtual void video_start() override; void video_int_ack_w(uint16_t data = 0); TIMER_DEVICE_CALLBACK_MEMBER(scanline_update); void a2d_select_w(offs_t offset, uint8_t data); @@ -44,7 +45,6 @@ protected: TILE_GET_INFO_MEMBER(get_alpha_tile_info); TILE_GET_INFO_MEMBER(get_playfield_tile_info); TILEMAP_MAPPER_MEMBER(atarig42_playfield_scan); - DECLARE_VIDEO_START(atarig42); uint32_t screen_update_atarig42(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void atarig42(machine_config &config); void main_map(address_map &map); diff --git a/src/mame/includes/blstroid.h b/src/mame/includes/blstroid.h index d4e1cefa6ac..ed2f18b2037 100644 --- a/src/mame/includes/blstroid.h +++ b/src/mame/includes/blstroid.h @@ -38,6 +38,7 @@ public: protected: virtual void machine_reset() override; + virtual void video_start() override; virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; @@ -47,7 +48,6 @@ private: void video_int_ack_w(uint16_t data = 0); void halt_until_hblank_0_w(uint16_t data = 0); TILE_GET_INFO_MEMBER(get_playfield_tile_info); - DECLARE_VIDEO_START(blstroid); uint32_t screen_update_blstroid(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void main_map(address_map &map); diff --git a/src/mame/includes/blueprnt.h b/src/mame/includes/blueprnt.h index ffaf731db18..36ec74baf1e 100644 --- a/src/mame/includes/blueprnt.h +++ b/src/mame/includes/blueprnt.h @@ -30,6 +30,13 @@ public: m_colorram(*this, "colorram") { } + void blueprnt(machine_config &config); + void grasspin(machine_config &config); + +protected: + virtual void video_start() override; + +private: /* device/memory pointers */ required_device<cpu_device> m_maincpu; required_device<cpu_device> m_audiocpu; @@ -59,12 +66,9 @@ public: TILE_GET_INFO_MEMBER(get_bg_tile_info); virtual void machine_start() override; virtual void machine_reset() override; - DECLARE_VIDEO_START(blueprnt); void blueprnt_palette(palette_device &palette) const; uint32_t screen_update_blueprnt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); - void blueprnt(machine_config &config); - void grasspin(machine_config &config); + void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); void blueprnt_map(address_map &map); void grasspin_map(address_map &map); void sound_io(address_map &map); diff --git a/src/mame/includes/eolith.h b/src/mame/includes/eolith.h index 5a7a8cd8ad9..af17a5d5823 100644 --- a/src/mame/includes/eolith.h +++ b/src/mame/includes/eolith.h @@ -45,6 +45,7 @@ public: void init_speedup(); protected: + virtual void video_start() override; required_device<cpu_device> m_maincpu; required_device<screen_device> m_screen; @@ -66,8 +67,6 @@ private: void soundcpu_to_qs1000(uint8_t data); DECLARE_MACHINE_RESET(eolith); - DECLARE_VIDEO_START(eolith); - uint32_t screen_update_eolith(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/includes/galspnbl.h b/src/mame/includes/galspnbl.h index d71cd32742b..ae300f66477 100644 --- a/src/mame/includes/galspnbl.h +++ b/src/mame/includes/galspnbl.h @@ -38,6 +38,9 @@ public: void galspnbl(machine_config &config); +protected: + virtual void video_start() override; + private: /* memory pointers */ required_shared_ptr<uint16_t> m_spriteram; @@ -61,7 +64,6 @@ private: uint32_t screen_update_galspnbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect ); bitmap_ind16 m_sprite_bitmap; - DECLARE_VIDEO_START(galspnbl); void mix_sprite_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int pri); diff --git a/src/mame/video/atarig1.cpp b/src/mame/video/atarig1.cpp index 4d22f154fec..50fd1319a3a 100644 --- a/src/mame/video/atarig1.cpp +++ b/src/mame/video/atarig1.cpp @@ -44,7 +44,7 @@ TILE_GET_INFO_MEMBER(atarig1_state::get_playfield_tile_info) * *************************************/ -VIDEO_START_MEMBER(atarig1_state,atarig1) +void atarig1_state::video_start() { /* blend the playfields and free the temporary one */ blend_gfx(0, 2, 0x0f, 0x10); diff --git a/src/mame/video/atarig42.cpp b/src/mame/video/atarig42.cpp index 67a50a0478b..9c62b353e9c 100644 --- a/src/mame/video/atarig42.cpp +++ b/src/mame/video/atarig42.cpp @@ -67,7 +67,7 @@ TILEMAP_MAPPER_MEMBER(atarig42_state::atarig42_playfield_scan) * *************************************/ -VIDEO_START_MEMBER(atarig42_state,atarig42) +void atarig42_state::video_start() { /* blend the playfields and free the temporary one */ blend_gfx(0, 2, 0x0f, 0x30); diff --git a/src/mame/video/blstroid.cpp b/src/mame/video/blstroid.cpp index d71c2db6ca0..76fab2db46b 100644 --- a/src/mame/video/blstroid.cpp +++ b/src/mame/video/blstroid.cpp @@ -68,7 +68,7 @@ const atari_motion_objects_config blstroid_state::s_mob_config = 0 /* resulting value to indicate "special" */ }; -VIDEO_START_MEMBER(blstroid_state,blstroid) +void blstroid_state::video_start() { m_irq_off_timer = timer_alloc(TIMER_IRQ_OFF); m_irq_on_timer = timer_alloc(TIMER_IRQ_ON); diff --git a/src/mame/video/blueprnt.cpp b/src/mame/video/blueprnt.cpp index 16adfaf2c61..3eeb27a44dc 100644 --- a/src/mame/video/blueprnt.cpp +++ b/src/mame/video/blueprnt.cpp @@ -113,7 +113,7 @@ TILE_GET_INFO_MEMBER(blueprnt_state::get_bg_tile_info) -VIDEO_START_MEMBER(blueprnt_state,blueprnt) +void blueprnt_state::video_start() { m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(blueprnt_state::get_bg_tile_info)), TILEMAP_SCAN_COLS_FLIP_X, 8, 8, 32, 32); m_bg_tilemap->set_transparent_pen(0); @@ -123,11 +123,9 @@ VIDEO_START_MEMBER(blueprnt_state,blueprnt) } -void blueprnt_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ) +void blueprnt_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) { - int offs; - - for (offs = 0; offs < m_spriteram.bytes(); offs += 4) + for (int offs = 0; offs < m_spriteram.bytes(); offs += 4) { int code = m_spriteram[offs + 1]; int sx = m_spriteram[offs + 3]; diff --git a/src/mame/video/eolith.cpp b/src/mame/video/eolith.cpp index eae182abec2..cd852a6c811 100644 --- a/src/mame/video/eolith.cpp +++ b/src/mame/video/eolith.cpp @@ -21,7 +21,7 @@ uint16_t eolith_state::eolith_vram_r(offs_t offset) return m_vram[offset+(0x40000/2)*m_buffer]; } -VIDEO_START_MEMBER(eolith_state,eolith) +void eolith_state::video_start() { m_vram = std::make_unique<uint16_t[]>(0x40000); save_pointer(NAME(m_vram), 0x40000); diff --git a/src/mame/video/galspnbl.cpp b/src/mame/video/galspnbl.cpp index d1c1c611588..07ff42d6954 100644 --- a/src/mame/video/galspnbl.cpp +++ b/src/mame/video/galspnbl.cpp @@ -26,7 +26,7 @@ void galspnbl_state::draw_background( bitmap_ind16 &bitmap, const rectangle &cli } } -VIDEO_START_MEMBER(galspnbl_state,galspnbl) +void galspnbl_state::video_start() { /* allocate bitmaps */ m_screen->register_screen_bitmap(m_sprite_bitmap); |