mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
replaced a few more exit() calls with fatalerror() (nw)
This commit is contained in:
parent
e59abd06d0
commit
2320947534
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user