src/emu/image.c
| r10036 | r10037 | |
| 226 | 226 | { |
| 227 | 227 | /* retrieve image error message */ |
| 228 | 228 | astring image_err = astring(image->error()); |
| 229 | | const char *image_basename_str = image->basename(); |
| 229 | astring image_basename(image_name); |
| 230 | 230 | /* unload all images */ |
| 231 | 231 | image_unload_all(*machine); |
| 232 | 232 | |
| 233 | 233 | fatalerror_exitcode(machine, MAMERR_DEVICE, "Device %s load (%s) failed: %s", |
| 234 | 234 | image->image_config().devconfig().name(), |
| 235 | | image_basename_str, |
| 235 | image_basename.cstr(), |
| 236 | 236 | image_err.cstr()); |
| 237 | 237 | } |
| 238 | 238 | } |