diff options
Diffstat (limited to 'src/mame/includes/mouser.h')
-rw-r--r-- | src/mame/includes/mouser.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mame/includes/mouser.h b/src/mame/includes/mouser.h index 0e5972e2038..657b7d28737 100644 --- a/src/mame/includes/mouser.h +++ b/src/mame/includes/mouser.h @@ -5,14 +5,18 @@ Mouser *************************************************************************/ +#ifndef MAME_INCLUDES_MOUSER_H +#define MAME_INCLUDES_MOUSER_H + +#pragma once #include "emupal.h" class mouser_state : public driver_device { public: - mouser_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + mouser_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_videoram(*this, "videoram"), m_colorram(*this, "colorram"), m_spriteram(*this, "spriteram"), @@ -20,12 +24,17 @@ public: m_audiocpu(*this, "audiocpu"), m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), - m_decrypted_opcodes(*this, "decrypted_opcodes") { } + m_decrypted_opcodes(*this, "decrypted_opcodes") + { } void mouser(machine_config &config); void init_mouser(); +protected: + virtual void machine_start() override; + virtual void machine_reset() override; + private: /* memory pointers */ required_shared_ptr<uint8_t> m_videoram; @@ -46,8 +55,6 @@ private: DECLARE_WRITE8_MEMBER(mouser_sound_nmi_clear_w); DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w); DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w); - virtual void machine_start() override; - virtual void machine_reset() override; DECLARE_PALETTE_INIT(mouser); uint32_t screen_update_mouser(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECLARE_WRITE_LINE_MEMBER(mouser_nmi_interrupt); @@ -57,3 +64,5 @@ private: void mouser_sound_io_map(address_map &map); void mouser_sound_map(address_map &map); }; + +#endif // MAME_INCLUDES_MOUSER_H |