(nw) Save partname to inifile, so that the correct part is loaded next time.

This commit is contained in:
Robbbert 2017-07-24 01:33:38 +10:00 committed by Vas Crabb
parent 95ff6a6092
commit 51e574a351

View File

@ -201,7 +201,12 @@ void image_manager::options_extract()
if (image.exists())
{
if (image.loaded_through_softlist())
{
image_opt = util::string_format("%s:%s", image.software_list_name(), image.full_software_name());
const software_part *tmp = image.part_entry();
if (!tmp->name().empty())
image_opt.append(":").append(tmp->name());
}
else
image_opt = image.filename();
}