summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/fatfury2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/fatfury2.h')
-rw-r--r--src/devices/bus/neogeo/fatfury2.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/devices/bus/neogeo/fatfury2.h b/src/devices/bus/neogeo/fatfury2.h
index 5579fe2b0bb..e49c6011629 100644
--- a/src/devices/bus/neogeo/fatfury2.h
+++ b/src/devices/bus/neogeo/fatfury2.h
@@ -1,37 +1,40 @@
// license:BSD-3-Clause
// copyright-holders:S. Smith,David Haywood,Fabio Priuli
-#ifndef __NEOGEO_FATFURY2_H
-#define __NEOGEO_FATFURY2_H
+#ifndef MAME_BUS_NEOGEO_FATFURY2_H
+#define MAME_BUS_NEOGEO_FATFURY2_H
+
+#pragma once
#include "slot.h"
#include "rom.h"
#include "prot_fatfury2.h"
-// ======================> neogeo_fatfury2_cart
+// ======================> neogeo_fatfury2_cart_device
-class neogeo_fatfury2_cart : public neogeo_rom_device
+class neogeo_fatfury2_cart_device : public neogeo_rom_device
{
public:
// construction/destruction
- neogeo_fatfury2_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint16_t clock);
+ neogeo_fatfury2_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<fatfury2_prot_device> m_prot;
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_reset() override;
+ required_device<fatfury2_prot_device> m_prot;
};
// device type definition
-extern const device_type NEOGEO_FATFURY2_CART;
+DECLARE_DEVICE_TYPE(NEOGEO_FATFURY2_CART, neogeo_fatfury2_cart_device)
-#endif
+#endif // MAME_BUS_NEOGEO_FATFURY2_H