summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/imagedev
diff options
context:
space:
mode:
author Sandro Ronco <sronco@users.noreply.github.com>2012-11-27 11:20:57 +0000
committer Sandro Ronco <sronco@users.noreply.github.com>2012-11-27 11:20:57 +0000
commit7373b52015f7215364d21477bb67c50d9fc556c6 (patch)
tree828dbc535c0794f576b7431779d9198d99a8cc9d /src/emu/imagedev
parent4bb3984c834a7571114211d9786b3a651cf81e0c (diff)
(MESS) floppy: added a more descriptive error message when it fails to identify the image format. (nw)
Diffstat (limited to 'src/emu/imagedev')
-rw-r--r--src/emu/imagedev/floppy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/imagedev/floppy.c b/src/emu/imagedev/floppy.c
index 767f54d35c6..58fb4feddee 100644
--- a/src/emu/imagedev/floppy.c
+++ b/src/emu/imagedev/floppy.c
@@ -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);