fix: don't exit on failure
This commit is contained in:
parent
7019139979
commit
f77a0ce4b2
@ -930,10 +930,10 @@ void app_coordinates_bitmap_to_window( app_t* app, int width, int height, int* x
|
|||||||
#ifndef APP_FATAL_ERROR
|
#ifndef APP_FATAL_ERROR
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#define APP_FATAL_ERROR( ctx, message ) { ::printf( "FATAL ERROR: %s\n", message ); \
|
#define APP_FATAL_ERROR( ctx, message ) { ::printf( "FATAL ERROR: %s\n", message ); \
|
||||||
::MessageBoxA( 0, message, "Fatal Error!", MB_OK | MB_ICONSTOP ); ::_flushall(); ::_exit( 0xff ); }
|
::MessageBoxA( 0, message, "Fatal Error!", MB_OK | MB_ICONSTOP ); ::_flushall(); }
|
||||||
#else
|
#else
|
||||||
#define APP_FATAL_ERROR( ctx, message ) { printf( "FATAL ERROR: %s\n", message ); \
|
#define APP_FATAL_ERROR( ctx, message ) { printf( "FATAL ERROR: %s\n", message ); \
|
||||||
MessageBoxA( 0, message, "Fatal Error!", MB_OK | MB_ICONSTOP ); _flushall(); _exit( 0xff ); }
|
MessageBoxA( 0, message, "Fatal Error!", MB_OK | MB_ICONSTOP ); _flushall(); }
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -742,7 +742,6 @@ void FindResponseFile (void)
|
|||||||
if (!handle)
|
if (!handle)
|
||||||
{
|
{
|
||||||
printf ("\nNo such response file!");
|
printf ("\nNo such response file!");
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
printf("Found response file %s!\n",&myargv[i][1]);
|
printf("Found response file %s!\n",&myargv[i][1]);
|
||||||
fseek (handle,0,SEEK_END);
|
fseek (handle,0,SEEK_END);
|
||||||
|
|||||||
@ -927,7 +927,6 @@ myioctl
|
|||||||
{
|
{
|
||||||
fprintf(stderr, "ioctl(dsp,%d,arg) failed\n", command);
|
fprintf(stderr, "ioctl(dsp,%d,arg) failed\n", command);
|
||||||
fprintf(stderr, "errno=%d\n", errno);
|
fprintf(stderr, "errno=%d\n", errno);
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -121,7 +121,6 @@ void I_Quit (void)
|
|||||||
I_ShutdownMusic();
|
I_ShutdownMusic();
|
||||||
M_SaveDefaults ();
|
M_SaveDefaults ();
|
||||||
I_ShutdownGraphics();
|
I_ShutdownGraphics();
|
||||||
exit(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -164,7 +163,6 @@ void I_Error (char *error, ...)
|
|||||||
D_QuitNetGame ();
|
D_QuitNetGame ();
|
||||||
I_ShutdownGraphics();
|
I_ShutdownGraphics();
|
||||||
|
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -292,7 +290,6 @@ void I_Quit (void)
|
|||||||
I_ShutdownMusic();
|
I_ShutdownMusic();
|
||||||
M_SaveDefaults ();
|
M_SaveDefaults ();
|
||||||
I_ShutdownGraphics();
|
I_ShutdownGraphics();
|
||||||
exit(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void I_WaitVBL(int count)
|
void I_WaitVBL(int count)
|
||||||
@ -351,7 +348,6 @@ void I_Error (char *error, ...)
|
|||||||
D_QuitNetGame ();
|
D_QuitNetGame ();
|
||||||
I_ShutdownGraphics();
|
I_ShutdownGraphics();
|
||||||
|
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@ -60,7 +60,6 @@ myioctl
|
|||||||
{
|
{
|
||||||
fprintf(stderr, "ioctl(dsp,%d,arg) failed\n", command);
|
fprintf(stderr, "ioctl(dsp,%d,arg) failed\n", command);
|
||||||
fprintf(stderr, "errno=%d\n", errno);
|
fprintf(stderr, "errno=%d\n", errno);
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -136,7 +136,6 @@ int vol_lookup[128*256];
|
|||||||
static void derror(char* msg)
|
static void derror(char* msg)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "error: %s\n", msg);
|
fprintf(stderr, "error: %s\n", msg);
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int mix(void)
|
int mix(void)
|
||||||
@ -371,7 +370,6 @@ grabdata
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Could not find wadfile anywhere\n");
|
fprintf(stderr, "Could not find wadfile anywhere\n");
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -574,7 +572,6 @@ void quit(void)
|
|||||||
{
|
{
|
||||||
I_ShutdownMusic();
|
I_ShutdownMusic();
|
||||||
I_ShutdownSound();
|
I_ShutdownSound();
|
||||||
exit(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -127,7 +127,6 @@ unsigned short SwapSHORT(unsigned short x)
|
|||||||
static void derror(char* msg)
|
static void derror(char* msg)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "\nwadread error: %s\n", msg);
|
fprintf(stderr, "\nwadread error: %s\n", msg);
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user