summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/thedeep.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/thedeep.h')
-rw-r--r--src/mame/includes/thedeep.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mame/includes/thedeep.h b/src/mame/includes/thedeep.h
index 25e7494bb01..1052d334be4 100644
--- a/src/mame/includes/thedeep.h
+++ b/src/mame/includes/thedeep.h
@@ -1,5 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Luca Elia
+#ifndef MAME_INCLUDES_THEDEEP_H
+#define MAME_INCLUDES_THEDEEP_H
+
+#pragma once
#include "machine/gen_latch.h"
#include "machine/timer.h"
@@ -10,8 +14,8 @@
class thedeep_state : public driver_device
{
public:
- thedeep_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ thedeep_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_mcu(*this, "mcu"),
@@ -24,10 +28,15 @@ public:
m_vram_1(*this, "vram_1"),
m_scroll(*this, "scroll"),
m_scroll2(*this, "scroll2")
- { }
+ { }
void thedeep(machine_config &config);
+protected:
+ virtual void machine_start() override;
+ virtual void machine_reset() override;
+ virtual void video_start() override;
+
private:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
@@ -69,9 +78,6 @@ private:
TILE_GET_INFO_MEMBER(get_tile_info_0);
TILE_GET_INFO_MEMBER(get_tile_info_1);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
DECLARE_PALETTE_INIT(thedeep);
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -82,3 +88,5 @@ private:
void audio_map(address_map &map);
void main_map(address_map &map);
};
+
+#endif // MAME_INCLUDES_THEDEEP_H