summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/rom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/rom.h')
-rw-r--r--src/devices/bus/neogeo/rom.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/devices/bus/neogeo/rom.h b/src/devices/bus/neogeo/rom.h
index 17efc4da4a7..1f62a890859 100644
--- a/src/devices/bus/neogeo/rom.h
+++ b/src/devices/bus/neogeo/rom.h
@@ -6,6 +6,7 @@
#pragma once
#include "slot.h"
+#include "machine/nvram.h"
// ======================> neogeo_rom_device
@@ -50,10 +51,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_cart_ram[0x1000];
+ std::unique_ptr<uint16_t[]> m_cart_ram;
+
+ required_device<nvram_device> m_nvram;
};
DECLARE_DEVICE_TYPE(NEOGEO_VLINER_CART, neogeo_vliner_cart_device)