diff options
Diffstat (limited to 'src/mame/includes/truco.h')
-rw-r--r-- | src/mame/includes/truco.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mame/includes/truco.h b/src/mame/includes/truco.h index 18a5bcc2a54..8c12fa66165 100644 --- a/src/mame/includes/truco.h +++ b/src/mame/includes/truco.h @@ -1,5 +1,9 @@ // license:BSD-3-Clause // copyright-holders:Ernesto Corvi, Roberto Fresca +#ifndef MAME_INCLUDES_TRUCO_H +#define MAME_INCLUDES_TRUCO_H + +#pragma once #include "machine/watchdog.h" #include "sound/dac.h" @@ -8,16 +12,21 @@ class truco_state : public driver_device { public: - truco_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + truco_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_watchdog(*this, "watchdog"), m_dac(*this, "dac"), m_videoram(*this, "videoram"), - m_battery_ram(*this, "battery_ram") { } + m_battery_ram(*this, "battery_ram") + { } void truco(machine_config &config); +protected: + virtual void machine_start() override; + virtual void machine_reset() override; + private: required_device<cpu_device> m_maincpu; required_device<watchdog_timer_device> m_watchdog; @@ -34,8 +43,6 @@ private: DECLARE_WRITE_LINE_MEMBER(pia_irqa_w); DECLARE_WRITE_LINE_MEMBER(pia_irqb_w); - virtual void machine_start() override; - virtual void machine_reset() override; DECLARE_PALETTE_INIT(truco); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -43,3 +50,5 @@ private: INTERRUPT_GEN_MEMBER(interrupt); void main_map(address_map &map); }; + +#endif // MAME_INCLUDES_TRUCO_H |