Previous 15994 Revisions Next

r14269 Monday 30th January, 2012 at 14:35:28 UTC by Miodrag Milanović
Fix regression on softload item load using menus (no whatsnew)
[src/emu]diimage.c diimage.h romload.c softlist.c softlist.h

src/emu/diimage.c
r14268r14269
869869      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 );
870870      // if we had launched from softlist with a specified part, e.g. "shortname:part"
871871      // we would have recorded the wrong name, so record it again based on software_info
872      if (m_software_info_ptr && m_software_info_ptr->shortname)
873         m_err = set_image_filename(m_software_info_ptr->shortname);
872      if (m_software_info_ptr && m_full_software_name)
873         m_err = set_image_filename(m_full_software_name);
874874
875875      m_from_swlist = TRUE;
876876   }
src/emu/diimage.h
r14268r14269
335335   virtual ~ui_menu_control_device_image();
336336   virtual void populate();
337337   virtual void handle();
338     
338
339339protected:
340340   enum {
341341      START_FILE, START_OTHER_PART, START_SOFTLIST, SELECT_PARTLIST, SELECT_ONE_PART, SELECT_OTHER_PART, SELECT_FILE, CREATE_FILE, CREATE_CONFIRM, DO_CREATE, SELECT_SOFTLIST,
src/emu/romload.c
r14268r14269
539539   else
540540      sprintf(buffer, "Loading Complete");
541541
542   ui_set_startup_text(romdata->machine(), buffer, FALSE);
542   if (!ui_is_menu_active()) ui_set_startup_text(romdata->machine(), buffer, FALSE);
543543}
544544
545545
src/emu/softlist.c
r14268r14269
17531753         new_part++;
17541754      }
17551755      *list_name = auto_strdup( image->device().machine(), swlist_name );
1756   
1756
17571757      /* Tell the world which part we actually loaded */
17581758      *full_sw_name = auto_alloc_array( image->device().machine(), char, strlen(swlist_name) + strlen(software_info_ptr->shortname) + strlen(software_part_ptr->name) + 3 );
17591759      sprintf( *full_sw_name, "%s:%s:%s", swlist_name, software_info_ptr->shortname, software_part_ptr->name );
src/emu/softlist.h
r14268r14269
6060   // inline configuration helpers
6161   static void static_set_config(device_t &device, const char *list, softlist_type list_type);
6262   static void static_set_filter(device_t &device, const char *filter);
63   
63
6464   // getters
6565   const char *list_name() const { return m_list_name; }
6666   softlist_type list_type() const { return m_list_type; }
6767   const char *filter() const { return m_filter; }
68   
68
6969   // validation helpers
7070   static void reset_checked_lists() { s_checked_lists.reset(); }
7171
r14268r14269
7676
7777   // configuration state
7878   const char *            m_list_name;
79   softlist_type             m_list_type;
79   softlist_type            m_list_type;
8080   const char *            m_filter;
81   
81
8282   // static state
8383   static tagmap_t<UINT8>      s_checked_lists;
8484};

Previous 15994 Revisions Next


© 1998-2018 The MESS Team