mirror of
https://github.com/holub/mame
synced 2025-06-07 05:13:46 +03:00
Fixed an issue where reset_on_load images would not properly persist across emulation sessions (#2244)
This commit is contained in:
parent
43b76a8a2f
commit
fb7dd27728
@ -176,6 +176,10 @@ int image_manager::write_config(emu_options &options, const char *filename, cons
|
|||||||
void image_manager::options_extract()
|
void image_manager::options_extract()
|
||||||
{
|
{
|
||||||
for (device_image_interface &image : image_interface_iterator(machine().root_device()))
|
for (device_image_interface &image : image_interface_iterator(machine().root_device()))
|
||||||
|
{
|
||||||
|
// only perform this activity for devices where is_reset_on_load() is false; for devices
|
||||||
|
// where this is true, manipulation of this value is done in reset_and_load()
|
||||||
|
if (!image.is_reset_on_load())
|
||||||
{
|
{
|
||||||
// we have to assemble the image option differently for software lists and for normal images
|
// we have to assemble the image option differently for software lists and for normal images
|
||||||
std::string image_opt;
|
std::string image_opt;
|
||||||
@ -190,6 +194,7 @@ void image_manager::options_extract()
|
|||||||
// and set the option
|
// and set the option
|
||||||
machine().options().image_options()[image.instance_name()] = std::move(image_opt);
|
machine().options().image_options()[image.instance_name()] = std::move(image_opt);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// write the config, if appropriate
|
// write the config, if appropriate
|
||||||
if (machine().options().write_config())
|
if (machine().options().write_config())
|
||||||
|
Loading…
Reference in New Issue
Block a user