summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/rom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/rom.cpp')
-rw-r--r--src/devices/bus/neogeo/rom.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/devices/bus/neogeo/rom.cpp b/src/devices/bus/neogeo/rom.cpp
index 0f54a808cef..10c61858386 100644
--- a/src/devices/bus/neogeo/rom.cpp
+++ b/src/devices/bus/neogeo/rom.cpp
@@ -73,19 +73,17 @@ WRITE16_MEMBER(neogeo_rom_device::banksel_w)
DEFINE_DEVICE_TYPE(NEOGEO_VLINER_CART, neogeo_vliner_cart_device, "neocart_vliner", "Neo Geo V-Liner Cart")
neogeo_vliner_cart_device::neogeo_vliner_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- neogeo_rom_device(mconfig, NEOGEO_VLINER_CART, tag, owner, clock),
- m_nvram(*this, "nvram")
+ neogeo_rom_device(mconfig, NEOGEO_VLINER_CART, tag, owner, clock)
{
}
+
void neogeo_vliner_cart_device::device_start()
{
- m_cart_ram = make_unique_clear<uint16_t[]>(0x2000/2);
- m_nvram->set_base(m_cart_ram.get(), 0x2000);
- save_pointer(NAME(m_cart_ram), 0x2000/2);
+ save_item(NAME(m_cart_ram));
}
-void neogeo_vliner_cart_device::device_add_mconfig(machine_config &config)
+void neogeo_vliner_cart_device::device_reset()
{
- NVRAM(config, m_nvram);
+ memset(m_cart_ram, 0, 0x2000);
}