Previous 15994 Revisions Next

r14564 Tuesday 21st February, 2012 at 12:46:28 UTC by Miodrag Milanović
Give more proper name and disabled loading of soflist items in open_image_file call, fixing loading of softlist items (no whatsnew)
[src/emu]diimage.c diimage.h
[src/mess/machine]c64exp.c

src/emu/diimage.c
r14563r14564
873873        goto done;
874874
875875   /* Check if there's a software list defined for this device and use that if we're not creating an image */
876   if (!filename_has_period)
876   if (!filename_has_period && !just_load)
877877   {
878878      softload = load_software_part( device().machine().options(), this, path, &m_software_info_ptr, &m_software_part_ptr, &m_full_software_name, &m_software_list_name );
879879      // if we had launched from softlist with a specified part, e.g. "shortname:part"
r14563r14564
971971}
972972
973973/*-------------------------------------------------
974    load_for_slot - load an image for slot device
974    open_image_file - opening plain image file
975975-------------------------------------------------*/
976976
977bool device_image_interface::load_for_slot(emu_options &options)
977bool device_image_interface::open_image_file(emu_options &options)
978978{
979979   const char* path = options.value(instance_name());
980980   if (strlen(path)>0)
src/emu/diimage.h
r14563r14564
246246   image_device_format *formatlist() const { return m_formatlist; }
247247
248248   bool load(const char *path);
249   bool load_for_slot(emu_options &options);
249   bool open_image_file(emu_options &options);
250250   bool finish_load();
251251   void unload();
252252   bool create(const char *path, const image_device_format *create_format, option_resolution *create_args);
src/mess/machine/c64exp.c
r14563r14564
399399
400400const char * c64_expansion_slot_device::get_default_card_software(const machine_config &config, emu_options &options)
401401{
402   if (load_for_slot(options))
402   if (open_image_file(options))
403403   {
404404      if (!mame_stricmp(filetype(), "crt"))
405405      {
r14563r14564
413413            return CRT_C64_SLOT_NAMES[hardware];
414414         }
415415      }
416      clear();
416417   }
417418   return software_get_default_slot(config, options, this, "standard");
418419}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team