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/d64_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/d64_dsk.cpp')
-rw-r--r-- | src/lib/formats/d64_dsk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/formats/d64_dsk.cpp b/src/lib/formats/d64_dsk.cpp index 1a96c11cd40..a0460554d8f 100644 --- a/src/lib/formats/d64_dsk.cpp +++ b/src/lib/formats/d64_dsk.cpp @@ -12,8 +12,6 @@ #include "formats/d64_dsk.h" -#include "emucore.h" // emu_fatalerror - d64_format::d64_format() { @@ -246,8 +244,10 @@ bool d64_format::load(io_generic *io, uint32_t form_factor, floppy_image *image) floppy_image_format_t::desc_e *desc = this->get_sector_desc(f, current_size, sector_count, id1, id2, gap2); int remaining_size = total_size - current_size; - if(remaining_size < 0) - throw emu_fatalerror("d64_format: Incorrect track layout, max_size=%d, current_size=%d", total_size, current_size); + if(remaining_size < 0) { + osd_printf_error("d64_format: Incorrect track layout, max_size=%d, current_size=%d\n", total_size, current_size); + return false; + } this->fix_end_gap(desc, remaining_size); |