summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/cmc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/cmc.h')
-rw-r--r--src/devices/bus/neogeo/cmc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/devices/bus/neogeo/cmc.h b/src/devices/bus/neogeo/cmc.h
index 88b1c27cd9f..bba8251d2e5 100644
--- a/src/devices/bus/neogeo/cmc.h
+++ b/src/devices/bus/neogeo/cmc.h
@@ -8,6 +8,7 @@
#include "slot.h"
#include "rom.h"
#include "prot_cmc.h"
+#include "machine/nvram.h"
// ======================> neogeo_cmc_cart_device
@@ -218,10 +219,13 @@ public:
protected:
virtual void device_start() override;
- virtual void device_reset() override;
+
+ virtual void device_add_mconfig(machine_config &config) override;
private:
- uint16_t m_ram[0x1000];
+ std::unique_ptr<uint16_t[]> m_ram;
+
+ required_device<nvram_device> m_nvram;
};
DECLARE_DEVICE_TYPE(NEOGEO_CMC_JOCKEYGP_CART, neogeo_cmc_jockeygp_cart_device)