summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/odyssey2/voice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/odyssey2/voice.h')
-rw-r--r--src/devices/bus/odyssey2/voice.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/odyssey2/voice.h b/src/devices/bus/odyssey2/voice.h
index 5262350823a..42550739843 100644
--- a/src/devices/bus/odyssey2/voice.h
+++ b/src/devices/bus/odyssey2/voice.h
@@ -1,7 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
-#ifndef __O2_VOICE_H
-#define __O2_VOICE_H
+#ifndef MAME_BUS_ODYSSEY2_VOICE_H
+#define MAME_BUS_ODYSSEY2_VOICE_H
+
+#pragma once
#include "slot.h"
#include "rom.h"
@@ -16,10 +18,6 @@ public:
// construction/destruction
o2_voice_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override {}
-
virtual machine_config_constructor device_mconfig_additions() const override;
virtual const tiny_rom_entry *device_rom_region() const override;
@@ -33,6 +31,11 @@ public:
virtual DECLARE_WRITE8_MEMBER(io_write) override;
virtual DECLARE_READ_LINE_MEMBER(t0_read) override { return m_speech->lrq_r() ? 0 : 1; }
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_reset() override { }
+
private:
required_device<sp0256_device> m_speech;
required_device<o2_cart_slot_device> m_subslot;
@@ -41,10 +44,7 @@ private:
};
-
-
// device type definition
extern const device_type O2_ROM_VOICE;
-
-#endif
+#endif // MAME_BUS_ODYSSEY2_VOICE_H