fix: don't exit on failure

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-01-18 19:55:46 -05:00
parent 7019139979
commit f77a0ce4b2
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
7 changed files with 2 additions and 13 deletions

View File

@ -930,10 +930,10 @@ void app_coordinates_bitmap_to_window( app_t* app, int width, int height, int* x
#ifndef APP_FATAL_ERROR
#if defined(__cplusplus)
#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
#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

View File

@ -742,7 +742,6 @@ void FindResponseFile (void)
if (!handle)
{
printf ("\nNo such response file!");
exit(1);
}
printf("Found response file %s!\n",&myargv[i][1]);
fseek (handle,0,SEEK_END);

View File

@ -927,7 +927,6 @@ myioctl
{
fprintf(stderr, "ioctl(dsp,%d,arg) failed\n", command);
fprintf(stderr, "errno=%d\n", errno);
exit(-1);
}
}

View File

@ -121,7 +121,6 @@ void I_Quit (void)
I_ShutdownMusic();
M_SaveDefaults ();
I_ShutdownGraphics();
exit(0);
}
@ -164,7 +163,6 @@ void I_Error (char *error, ...)
D_QuitNetGame ();
I_ShutdownGraphics();
exit(-1);
}
@ -292,7 +290,6 @@ void I_Quit (void)
I_ShutdownMusic();
M_SaveDefaults ();
I_ShutdownGraphics();
exit(0);
}
void I_WaitVBL(int count)
@ -351,7 +348,6 @@ void I_Error (char *error, ...)
D_QuitNetGame ();
I_ShutdownGraphics();
exit(-1);
}
#endif

View File

@ -60,7 +60,6 @@ myioctl
{
fprintf(stderr, "ioctl(dsp,%d,arg) failed\n", command);
fprintf(stderr, "errno=%d\n", errno);
exit(-1);
}
}

View File

@ -136,7 +136,6 @@ int vol_lookup[128*256];
static void derror(char* msg)
{
fprintf(stderr, "error: %s\n", msg);
exit(-1);
}
int mix(void)
@ -371,7 +370,6 @@ grabdata
else
{
fprintf(stderr, "Could not find wadfile anywhere\n");
exit(-1);
}
@ -574,7 +572,6 @@ void quit(void)
{
I_ShutdownMusic();
I_ShutdownSound();
exit(0);
}

View File

@ -127,7 +127,6 @@ unsigned short SwapSHORT(unsigned short x)
static void derror(char* msg)
{
fprintf(stderr, "\nwadread error: %s\n", msg);
exit(-1);
}