summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/nvram.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/nvram.h')
-rw-r--r--src/devices/machine/nvram.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/devices/machine/nvram.h b/src/devices/machine/nvram.h
index f497a02976e..92bc81f64bb 100644
--- a/src/devices/machine/nvram.h
+++ b/src/devices/machine/nvram.h
@@ -55,21 +55,20 @@ protected:
// device_nvram_interface overrides
virtual void nvram_default() override;
- virtual void nvram_read(emu_file &file) override;
- virtual void nvram_write(emu_file &file) override;
- virtual bool nvram_can_write() override { return m_base && m_length; }
+ virtual bool nvram_read(util::read_stream &file) override;
+ virtual bool nvram_write(util::write_stream &file) override;
// internal helpers
void determine_final_base();
// configuration state
- optional_memory_region m_region;
- default_value m_default_value;
- init_delegate m_custom_handler;
+ optional_memory_region m_region;
+ default_value m_default_value;
+ init_delegate m_custom_handler;
// runtime state
- void * m_base;
- size_t m_length;
+ void * m_base;
+ size_t m_length;
};
DECLARE_DEVICE_TYPE(NVRAM, nvram_device)