diff options
author | 2020-08-30 17:08:25 +1000 | |
---|---|---|
committer | 2020-08-30 17:08:25 +1000 | |
commit | ec88949651e02a6d3558e7c38555f3473618c9cc (patch) | |
tree | 65689af57c49ccd881643be276f7f809c37aa87c /src/lib/formats/ibmxdf_dsk.cpp | |
parent | 8cf55b23daffb1f565a510458331d0dc49e690dc (diff) |
formats: Get rid of more inappropriate use of emu_fatalerror (and fix some spelling issues, etc. while I'm at it)
Diffstat (limited to 'src/lib/formats/ibmxdf_dsk.cpp')
-rw-r--r-- | src/lib/formats/ibmxdf_dsk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/formats/ibmxdf_dsk.cpp b/src/lib/formats/ibmxdf_dsk.cpp index b9a55daca85..592f603ef30 100644 --- a/src/lib/formats/ibmxdf_dsk.cpp +++ b/src/lib/formats/ibmxdf_dsk.cpp @@ -32,8 +32,6 @@ #include "ibmxdf_dsk.h" -#include "emucore.h" // emu_fatalerror - ibmxdf_format::ibmxdf_format() : wd177x_format(formats) { @@ -196,8 +194,10 @@ bool ibmxdf_format::load(io_generic *io, uint32_t form_factor, floppy_image *ima int total_size = 200000000/tf.cell_size; int remaining_size = total_size - current_size; - if(remaining_size < 0) - throw emu_fatalerror("ibmxdf_format: Incorrect track layout, max_size=%d, current_size=%d", total_size, current_size); + if(remaining_size < 0) { + osd_printf_error("ibmxdf_format: Incorrect track layout, max_size=%d, current_size=%d\n", total_size, current_size); + return false; + } // Fixup the end gap desc[end_gap_index].p2 = remaining_size / 16; |