summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2017-07-24 01:33:38 +1000
committer Vas Crabb <vas@vastheman.com>2017-07-24 01:56:48 +1000
commit51e574a3511e23b2d350a29ff08234e04c0aaa4b (patch)
tree0ef6a54ad977decde6081b9a8d4e17f0e364bad8
parent95ff6a60922358afc7ab0d90b22fa98e2e8f2a3f (diff)
(nw) Save partname to inifile, so that the correct part is loaded next time.
-rw-r--r--src/emu/image.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/image.cpp b/src/emu/image.cpp
index e93362c6603..f98ecd65f31 100644
--- a/src/emu/image.cpp
+++ b/src/emu/image.cpp
@@ -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();
}