summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/mslugx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/mslugx.h')
-rw-r--r--src/devices/bus/neogeo/mslugx.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/devices/bus/neogeo/mslugx.h b/src/devices/bus/neogeo/mslugx.h
index 20a144917d9..03d1aaaa21d 100644
--- a/src/devices/bus/neogeo/mslugx.h
+++ b/src/devices/bus/neogeo/mslugx.h
@@ -1,37 +1,38 @@
// license:BSD-3-Clause
// copyright-holders:S. Smith,David Haywood,Fabio Priuli
-#ifndef __NEOGEO_MSLUGX_CART_H
-#define __NEOGEO_MSLUGX_CART_H
+#ifndef MAME_BUS_NEOGEO_MSLUGX_H
+#define MAME_BUS_NEOGEO_MSLUGX_H
+
+#pragma once
#include "slot.h"
#include "rom.h"
#include "prot_mslugx.h"
-// ======================> neogeo_mslugx_cart
+// ======================> neogeo_mslugx_cart_device
-class neogeo_mslugx_cart : public neogeo_rom_device
+class neogeo_mslugx_cart_device : public neogeo_rom_device
{
public:
// construction/destruction
- neogeo_mslugx_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint16_t clock);
+ neogeo_mslugx_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint16_t clock);
- // device-level overrides
- virtual void device_start() override;
- virtual void device_reset() override;
virtual machine_config_constructor device_mconfig_additions() const override;
// reading and writing
virtual DECLARE_READ16_MEMBER(protection_r) override { return m_prot->protection_r(space, offset, mem_mask); }
virtual DECLARE_WRITE16_MEMBER(protection_w) override { m_prot->protection_w(space, offset, data, mem_mask); }
- required_device<mslugx_prot_device> m_prot;
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_reset() override;
+ required_device<mslugx_prot_device> m_prot;
};
-
// device type definition
extern const device_type NEOGEO_MSLUGX_CART;
-
-#endif
+#endif // MAME_BUS_NEOGEO_MSLUGX_H