src/mess/image.c
| r6989 | r6990 | |
| 856 | 856 | |
| 857 | 857 | if ( slot->software_entry ) |
| 858 | 858 | { |
| 859 | | load_region_list(slot->dev, slot->software_list->name, slot->software_entry->name, slot->software_entry->rom_info ); |
| 859 | char swname[256]; |
| 860 | 860 | |
| 861 | sprintf( swname, "%s:%s", slot->software_list->name, slot->software_entry->name ); |
| 862 | |
| 863 | load_software_region(slot->dev, swname, slot->software_entry->rom_info ); |
| 864 | |
| 861 | 865 | /* call device load or create */ |
| 862 | 866 | if (image->token != NULL) |
| 863 | 867 | { |
| r6989 | r6990 | |
| 1461 | 1465 | |
| 1462 | 1466 | UINT8 *image_get_software_region(const device_config *image, const char *tag) |
| 1463 | 1467 | { |
| 1468 | image_slot_data *slot = find_image_slot(image); |
| 1464 | 1469 | char full_tag[256]; |
| 1465 | 1470 | |
| 1466 | | sprintf( full_tag, "%s:%s:%s", image->tag, image_software_entry(image)->name, tag ); |
| 1471 | if ( slot->software_list == NULL || slot->software_entry == NULL ) |
| 1472 | return NULL; |
| 1473 | |
| 1474 | sprintf( full_tag, "%s:%s:%s", slot->software_list->name, slot->software_entry->name, tag ); |
| 1467 | 1475 | return memory_region( image->machine, full_tag ); |
| 1468 | 1476 | } |
| 1469 | 1477 | |