diff options
Diffstat (limited to 'src/devices/bus/pasopia/rampac2.cpp')
-rw-r--r-- | src/devices/bus/pasopia/rampac2.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/devices/bus/pasopia/rampac2.cpp b/src/devices/bus/pasopia/rampac2.cpp index f9059e24345..21ec9c2baaa 100644 --- a/src/devices/bus/pasopia/rampac2.cpp +++ b/src/devices/bus/pasopia/rampac2.cpp @@ -86,9 +86,10 @@ void pasopia_rampac2_device::device_start() // nvram_read - read NVRAM from the file //------------------------------------------------- -void pasopia_rampac2_device::nvram_read(emu_file &file) +bool pasopia_rampac2_device::nvram_read(util::read_stream &file) { - file.read(&m_ram[0], m_ram_size); + auto const [err, actual] = read(file, &m_ram[0], m_ram_size); + return !err && (actual == m_ram_size); } @@ -96,9 +97,10 @@ void pasopia_rampac2_device::nvram_read(emu_file &file) // nvram_write - write NVRAM to the file //------------------------------------------------- -void pasopia_rampac2_device::nvram_write(emu_file &file) +bool pasopia_rampac2_device::nvram_write(util::write_stream &file) { - file.write(&m_ram[0], m_ram_size); + auto const [err, actual] = write(file, &m_ram[0], m_ram_size); + return !err; } |