mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
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
This commit is contained in:
parent
c57f9160c6
commit
d83bc728f5
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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];
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user