summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/sbp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/sbp.h')
-rw-r--r--src/devices/bus/neogeo/sbp.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/devices/bus/neogeo/sbp.h b/src/devices/bus/neogeo/sbp.h
index e6cf0e9aa77..455c7892399 100644
--- a/src/devices/bus/neogeo/sbp.h
+++ b/src/devices/bus/neogeo/sbp.h
@@ -1,9 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:S. Smith,David Haywood,Fabio Priuli
-#pragma once
+#ifndef MAME_BUS_NEOGEO_SBP_H
+#define MAME_BUS_NEOGEO_SBP_H
-#ifndef __NEOGEO_BOOTSBP_H
-#define __NEOGEO_BOOTSBP_H
+#pragma once
#include "slot.h"
#include "rom.h"
@@ -12,24 +12,25 @@
sbp
**************************************************/
-class neogeo_sbp_cart : public neogeo_rom_device
+class neogeo_sbp_cart_device : public neogeo_rom_device
{
public:
- neogeo_sbp_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- virtual void device_start() override;
- virtual void device_reset() override;
+ neogeo_sbp_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual DECLARE_WRITE16_MEMBER(protection_w) override;
virtual DECLARE_READ16_MEMBER(protection_r) override;
virtual void decrypt_all(DECRYPT_ALL_PARAMS) override;
- virtual int get_fixed_bank_type(void) override { return 0; }
+ virtual int get_fixed_bank_type() override { return 0; }
+
+protected:
+ virtual void device_start() override;
+ virtual void device_reset() override;
void patch(uint8_t* cpurom, uint32_t cpurom_size);
};
-extern const device_type NEOGEO_SBP_CART;
+DECLARE_DEVICE_TYPE(NEOGEO_SBP_CART, neogeo_sbp_cart_device)
-#endif
+#endif // MAME_BUS_NEOGEO_SBP_H