(MESS) floppy: added a more descriptive error message when it fails to identify the image format. (nw)

This commit is contained in:
Sandro Ronco 2012-11-27 11:20:57 +00:00
parent 4bb3984c83
commit 7373b52015

View File

@ -260,7 +260,10 @@ bool floppy_image_device::call_load()
}
if(!best_format)
{
seterror(IMAGE_ERROR_INVALIDIMAGE, "Unable to identify the image format");
return IMAGE_INIT_FAIL;
}
image = global_alloc(floppy_image(tracks, sides, form_factor));
best_format->load(&io, form_factor, image);