summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/usgames.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/usgames.h')
-rw-r--r--src/mame/includes/usgames.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mame/includes/usgames.h b/src/mame/includes/usgames.h
index 136303e8166..6c0280cea19 100644
--- a/src/mame/includes/usgames.h
+++ b/src/mame/includes/usgames.h
@@ -1,22 +1,31 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood, Nicola Salmoria
+#ifndef MAME_INCLUDES_USGAMES_H
+#define MAME_INCLUDES_USGAMES_H
+
+#pragma once
#include "emupal.h"
class usgames_state : public driver_device
{
public:
- usgames_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ usgames_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_gfxdecode(*this, "gfxdecode"),
m_videoram(*this, "videoram"),
m_charram(*this, "charram"),
- m_leds(*this, "led%u", 0U) { }
+ m_leds(*this, "led%u", 0U)
+ { }
void usg32(machine_config &config);
void usg185(machine_config &config);
+protected:
+ virtual void machine_start() override;
+ virtual void video_start() override;
+
private:
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
@@ -36,11 +45,11 @@ private:
TILE_GET_INFO_MEMBER(get_tile_info);
- virtual void machine_start() override;
- virtual void video_start() override;
DECLARE_PALETTE_INIT(usgames);
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void usg185_map(address_map &map);
void usgames_map(address_map &map);
};
+
+#endif // MAME_INCLUDES_USGAMES_H