src/emu/diimage.c
| r14268 | r14269 | |
| 869 | 869 | 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 ); |
| 870 | 870 | // if we had launched from softlist with a specified part, e.g. "shortname:part" |
| 871 | 871 | // 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); |
| 874 | 874 | |
| 875 | 875 | m_from_swlist = TRUE; |
| 876 | 876 | } |
src/emu/softlist.h
| r14268 | r14269 | |
| 60 | 60 | // inline configuration helpers |
| 61 | 61 | static void static_set_config(device_t &device, const char *list, softlist_type list_type); |
| 62 | 62 | static void static_set_filter(device_t &device, const char *filter); |
| 63 | | |
| 63 | |
| 64 | 64 | // getters |
| 65 | 65 | const char *list_name() const { return m_list_name; } |
| 66 | 66 | softlist_type list_type() const { return m_list_type; } |
| 67 | 67 | const char *filter() const { return m_filter; } |
| 68 | | |
| 68 | |
| 69 | 69 | // validation helpers |
| 70 | 70 | static void reset_checked_lists() { s_checked_lists.reset(); } |
| 71 | 71 | |
| r14268 | r14269 | |
| 76 | 76 | |
| 77 | 77 | // configuration state |
| 78 | 78 | const char * m_list_name; |
| 79 | | softlist_type m_list_type; |
| 79 | softlist_type m_list_type; |
| 80 | 80 | const char * m_filter; |
| 81 | | |
| 81 | |
| 82 | 82 | // static state |
| 83 | 83 | static tagmap_t<UINT8> s_checked_lists; |
| 84 | 84 | }; |