mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Don't load any NVRAM other than the default for devices whose configurations inhibit NVRAM saving
This commit is contained in:
parent
ebb519f8b3
commit
6d6ecf46b1
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user