src/mess/mess.c
| r7860 | r7861 | |
| 88 | 88 | { |
| 89 | 89 | /* retrieve image error message */ |
| 90 | 90 | const char *image_err = image_error(image); |
| 91 | char *image_basename = auto_strdup(machine, filename_basename((char *)image_name)); |
| 91 | 92 | |
| 92 | 93 | /* unload all images */ |
| 93 | 94 | image_unload_all(machine); |
| 94 | | /* FIXME: image_name is always empty in this message because of the image_unload_all() call */ |
| 95 | |
| 95 | 96 | fatalerror_exitcode(machine, MAMERR_DEVICE, "Device %s load (%s) failed: %s\n", |
| 96 | 97 | info.name, |
| 97 | | filename_basename((char *) image_name), |
| 98 | image_basename, |
| 98 | 99 | image_err); |
| 99 | 100 | } |
| 100 | 101 | } |