summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-07-24 08:24:10 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-07-24 08:25:26 -0400
commit6d6ecf46b15cd32599d0d6760178fed0563bc5a2 (patch)
treee6f7a4a6140c4c790e68acd7ade7f588c342e038
parentebb519f8b3250161cefbbc72b45f35027eb280bb (diff)
Don't load any NVRAM other than the default for devices whose configurations inhibit NVRAM saving
-rw-r--r--src/emu/machine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp
index 6613c5654bf..6f00685c759 100644
--- a/src/emu/machine.cpp
+++ b/src/emu/machine.cpp
@@ -1133,7 +1133,7 @@ void running_machine::nvram_load()
for (device_nvram_interface &nvram : nvram_interface_enumerator(root_device()))
{
emu_file file(options().nvram_directory(), OPEN_FLAG_READ);
- if (!file.open(nvram_filename(nvram.device())))
+ if (nvram.nvram_can_save() && !file.open(nvram_filename(nvram.device())))
{
if (!nvram.nvram_load(file))
osd_printf_error("Error reading NVRAM file %s\n", file.filename());