diff options
author | Olivier Galibert <galibert@pobox.com> | 2021-03-05 12:43:52 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2021-03-05 12:43:52 +0100 |
commit | 381e15a71109baa0bc9e8763b538fe7812710902 (patch) | |
tree | 8e4db0fa04b67caa696bb4c6197cf76269ee5188 /src/devices | |
parent | b0403c0e3d6e899b35359381626f0e6e30cbec27 (diff) |
fs_prodos: Explain the init better
floppy: Don't fail creation because the extension is unknown
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/imagedev/floppy.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp index cad19d80b8b..fc481f396e1 100644 --- a/src/devices/imagedev/floppy.cpp +++ b/src/devices/imagedev/floppy.cpp @@ -630,16 +630,13 @@ image_init_result floppy_image_device::call_create(int format_type, util::option output_format = i; break; } - } - // did we find a suitable format? - if (output_format == nullptr) - { - seterror(IMAGE_ERROR_INVALIDIMAGE, "Unable to identify the image format"); - return image_init_result::FAIL; + // Use MFI as a default. + if (!strcmp(i->name(), "mfi")) + output_format = i; } - init_floppy_load(output_format != nullptr); + init_floppy_load(true); return image_init_result::PASS; } |