src/mess/image.c
| r2397 | r2398 | |
| 436 | 436 | { |
| 437 | 437 | if (device == that_device) |
| 438 | 438 | index = count; |
| 439 | | if (device_get_info_int_offline(device, DEVINFO_INT_IMAGE_TYPE) == type) |
| 439 | if (device_get_info_int_offline(that_device, DEVINFO_INT_IMAGE_TYPE) == type) |
| 440 | 440 | count++; |
| 441 | 441 | } |
| 442 | 442 | |
| 443 | 443 | /* need to number if there is more than one device */ |
| 444 | | if (that_device != NULL) |
| 445 | | snprintf(buffer, buffer_len, "%s #%d", result, index + 1); |
| 444 | if (count > 1) |
| 445 | snprintf(buffer, buffer_len, "%s%d", result, index + 1); |
| 446 | 446 | else |
| 447 | 447 | snprintf(buffer, buffer_len, "%s", result); |
| 448 | 448 | } |