src/emu/uiimage.c
| r10038 | r10039 | |
| 903 | 903 | { |
| 904 | 904 | char buffer[2048]; |
| 905 | 905 | device_image_interface *image = NULL; |
| 906 | | const char *entry_basename; |
| 906 | astring tmp_name; |
| 907 | 907 | |
| 908 | 908 | /* cycle through all devices for this system */ |
| 909 | 909 | for (bool gotone = machine->m_devicelist.first(image); gotone; gotone = image->next(image)) |
| r10038 | r10039 | |
| 914 | 914 | image->image_config().devconfig().name()); |
| 915 | 915 | |
| 916 | 916 | /* get the base name */ |
| 917 | | entry_basename = image->basename(); |
| 917 | if (image->basename() != NULL) |
| 918 | { |
| 919 | tmp_name.cpy(image->basename()); |
| 918 | 920 | |
| 921 | /* the image has been loaded through softlist, also show the loaded part */ |
| 922 | if (image->part_entry() != NULL) |
| 923 | { |
| 924 | const software_part *tmp = image->part_entry(); |
| 925 | if (tmp->name != NULL) |
| 926 | { |
| 927 | tmp_name.cat(" ("); |
| 928 | tmp_name.cat(tmp->name); |
| 929 | tmp_name.cat(")"); |
| 930 | } |
| 931 | } |
| 932 | } |
| 933 | else |
| 934 | tmp_name.cpy("---"); |
| 935 | |
| 919 | 936 | /* record the menu item */ |
| 920 | | ui_menu_item_append(menu, buffer, (entry_basename != NULL) ? entry_basename : "---", 0, (void *) image); |
| 937 | ui_menu_item_append(menu, buffer, tmp_name.cstr(), 0, (void *) image); |
| 921 | 938 | } |
| 922 | 939 | |
| 923 | 940 | /* set up custom render proc */ |
src/emu/devimage.c
| r10038 | r10039 | |
| 431 | 431 | |
| 432 | 432 | /* record the filename */ |
| 433 | 433 | m_err = set_image_filename(path); |
| 434 | |
| 434 | 435 | if (m_err) |
| 435 | 436 | goto done; |
| 436 | 437 | |
| 437 | 438 | /* Check if there's a software list defined for this device and use that if we're not creating an image */ |
| 438 | 439 | if (!filename_has_period) |
| 440 | { |
| 439 | 441 | softload = load_software_part( this, path, &m_software_info_ptr, &m_software_part_ptr, &m_full_software_name ); |
| 442 | // if we had launched from softlist with a specified part, e.g. "shortname:part" |
| 443 | // we would have recorded the wrong name, so record it again based on software_info |
| 444 | if (m_software_info_ptr->shortname != NULL) |
| 445 | m_err = set_image_filename(m_software_info_ptr->shortname); |
| 446 | } |
| 440 | 447 | |
| 441 | 448 | if (is_create || filename_has_period) |
| 442 | 449 | { |