replaced a few more exit() calls with fatalerror() (nw)

This commit is contained in:
Oliver Stöneberg 2014-09-10 17:46:04 +00:00
parent e59abd06d0
commit 2320947534
2 changed files with 3 additions and 3 deletions

View File

@ -4,6 +4,7 @@
***************************************************************************/
#include "emu.h"
#include "apridisk.h"
#include "imageutl.h"
#include "coretmpl.h"
@ -188,8 +189,7 @@ FLOPPY_CONSTRUCT( apridisk_construct )
/* not sure if this is possible */
if (length != 512) {
printf("Compression unsupported");
exit(-1); // TODO: NO!
fatalerror("Compression unsupported\n");
}
memset(&tag->sectors[cur_sector].data, value, length);

View File

@ -673,7 +673,7 @@ static floperr_t d64_read_track(floppy_image_legacy *floppy, int head, int track
gcr_track_size = sectors_per_track * SECTOR_SIZE_GCR;
gcr_track_data = (UINT8 *)alloca(gcr_track_size);
if (buflen < gcr_track_size) { printf("D64 track buffer too small: %u!", (UINT32)buflen); exit(-1); }
if (buflen < gcr_track_size) { fatalerror("D64 track buffer too small: %u!\n", (UINT32)buflen); }
/* read D64 track data */
floppy_image_read(floppy, d64_track_data, track_offset, d64_track_size);