diff options
Diffstat (limited to 'src/mame/includes/ladyfrog.h')
-rw-r--r-- | src/mame/includes/ladyfrog.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/mame/includes/ladyfrog.h b/src/mame/includes/ladyfrog.h index ed36b92e8c4..b8ef2b0638e 100644 --- a/src/mame/includes/ladyfrog.h +++ b/src/mame/includes/ladyfrog.h @@ -5,6 +5,10 @@ Lady Frog *************************************************************************/ +#ifndef MAME_INCLUDES_LADYFROG_H +#define MAME_INCLUDES_LADYFROG_H + +#pragma once #include "machine/gen_latch.h" #include "sound/msm5232.h" @@ -13,8 +17,8 @@ class ladyfrog_state : public driver_device { public: - ladyfrog_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + ladyfrog_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_videoram(*this, "videoram"), m_scrlram(*this, "scrlram"), m_maincpu(*this, "maincpu"), @@ -22,11 +26,17 @@ public: m_msm(*this, "msm"), m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), - m_soundlatch(*this, "soundlatch") { } + m_soundlatch(*this, "soundlatch") + { } void toucheme(machine_config &config); void ladyfrog(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<uint8_t> m_videoram; @@ -74,9 +84,6 @@ private: DECLARE_WRITE8_MEMBER(ladyfrog_scrlram_w); DECLARE_WRITE8_MEMBER(unk_w); TILE_GET_INFO_MEMBER(get_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; DECLARE_VIDEO_START(toucheme); DECLARE_VIDEO_START(ladyfrog_common); uint32_t screen_update_ladyfrog(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -85,3 +92,5 @@ private: void ladyfrog_map(address_map &map); void ladyfrog_sound_map(address_map &map); }; + +#endif // MAME_INCLUDES_LADYFROG_H |