From ec88949651e02a6d3558e7c38555f3473618c9cc Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 30 Aug 2020 17:08:25 +1000 Subject: formats: Get rid of more inappropriate use of emu_fatalerror (and fix some spelling issues, etc. while I'm at it) --- src/lib/formats/wd177x_dsk.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/formats/wd177x_dsk.cpp') diff --git a/src/lib/formats/wd177x_dsk.cpp b/src/lib/formats/wd177x_dsk.cpp index fae7bd5f8a6..a7a829efb8f 100644 --- a/src/lib/formats/wd177x_dsk.cpp +++ b/src/lib/formats/wd177x_dsk.cpp @@ -10,8 +10,6 @@ #include "formats/wd177x_dsk.h" -#include "emucore.h" // emu_fatalerror - wd177x_format::wd177x_format(const format *_formats) { @@ -228,8 +226,10 @@ bool wd177x_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("wd177x_format: Incorrect track layout, max_size=%d, current_size=%d", total_size, current_size); + if(remaining_size < 0) { + osd_printf_error("wd177x_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; -- cgit v1.2.3-70-g09d2