diff options
Diffstat (limited to 'src/mame/includes/esd16.h')
-rw-r--r-- | src/mame/includes/esd16.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mame/includes/esd16.h b/src/mame/includes/esd16.h index 6ac16c4d63c..126880dcda9 100644 --- a/src/mame/includes/esd16.h +++ b/src/mame/includes/esd16.h @@ -5,6 +5,10 @@ ESD 16 Bit Games ***************************************************************************/ +#ifndef MAME_INCLUDES_ESD16_H +#define MAME_INCLUDES_ESD16_H + +#pragma once #include "machine/eepromser.h" #include "machine/gen_latch.h" @@ -13,8 +17,8 @@ class esd16_state : public driver_device { public: - esd16_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + esd16_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_vram_0(*this, "vram_0"), m_vram_1(*this, "vram_1"), m_scroll_0(*this, "scroll_0"), @@ -29,7 +33,7 @@ public: m_sprgen(*this, "spritegen"), m_eeprom(*this, "eeprom"), m_soundlatch(*this, "soundlatch") - {} + { } void jumppop(machine_config &config); void esd16(machine_config &config); @@ -38,6 +42,11 @@ public: void hedpanio(machine_config &config); void hedpanic(machine_config &config); +protected: + virtual void machine_start() override; + virtual void machine_reset() override; + virtual void video_start() override; + private: /* memory pointers */ required_shared_ptr<uint16_t> m_vram_0; @@ -79,9 +88,6 @@ private: TILE_GET_INFO_MEMBER(get_tile_info_0_16x16); TILE_GET_INFO_MEMBER(get_tile_info_1); TILE_GET_INFO_MEMBER(get_tile_info_1_16x16); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; uint32_t screen_update_hedpanic(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECOSPR_PRIORITY_CB_MEMBER(hedpanic_pri_callback); void hedpanic_map(address_map &map); @@ -99,3 +105,5 @@ private: void esd16_sprite_area(address_map &map, u32 base); void esd16_vram_area(address_map &map, u32 base); }; + +#endif // MAME_INCLUDES_ESD16_H |