summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/ssozumo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/ssozumo.h')
-rw-r--r--src/mame/includes/ssozumo.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mame/includes/ssozumo.h b/src/mame/includes/ssozumo.h
index a2affae7b49..95c456a3b89 100644
--- a/src/mame/includes/ssozumo.h
+++ b/src/mame/includes/ssozumo.h
@@ -1,13 +1,17 @@
// license:BSD-3-Clause
// copyright-holders:Takahiro Nogi
+#ifndef MAME_INCLUDES_SSOZUMO_H
+#define MAME_INCLUDES_SSOZUMO_H
+
+#pragma once
#include "emupal.h"
class ssozumo_state : public driver_device
{
public:
- ssozumo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ ssozumo_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_gfxdecode(*this, "gfxdecode"),
@@ -17,12 +21,17 @@ public:
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
m_videoram2(*this, "videoram2"),
- m_colorram2(*this, "colorram2") { }
+ m_colorram2(*this, "colorram2")
+ { }
void ssozumo(machine_config &config);
DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
+protected:
+ virtual void machine_start() override;
+ virtual void video_start() override;
+
private:
DECLARE_WRITE8_MEMBER(sound_nmi_mask_w);
DECLARE_WRITE8_MEMBER(videoram_w);
@@ -44,9 +53,6 @@ private:
void ssozumo_map(address_map &map);
void ssozumo_sound_map(address_map &map);
- virtual void machine_start() override;
- virtual void video_start() override;
-
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
@@ -66,3 +72,5 @@ private:
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
};
+
+#endif // MAME_INCLUDES_SSOZUMO_H