mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make dedicated servers not pop up that annoying SDL error window
So they don't mess with shell scripts that expect SRB2 to exit when it crashes (like most other programs) # Conflicts: # src/sdl/i_system.c
This commit is contained in:
parent
b7c23b9187
commit
786d263019
1 changed files with 17 additions and 12 deletions
|
|
@ -340,6 +340,7 @@ static void I_ReportSignal(int num, int coredumped)
|
||||||
|
|
||||||
I_OutputMsg("\nProcess killed by signal: %s\n\n", sigmsg);
|
I_OutputMsg("\nProcess killed by signal: %s\n\n", sigmsg);
|
||||||
|
|
||||||
|
if (!M_CheckParm("-dedicated"))
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
"Process killed by signal",
|
"Process killed by signal",
|
||||||
sigmsg, NULL);
|
sigmsg, NULL);
|
||||||
|
|
@ -1711,6 +1712,7 @@ static void newsignalhandler_Warn(const char *pr)
|
||||||
|
|
||||||
I_OutputMsg("%s\n", text);
|
I_OutputMsg("%s\n", text);
|
||||||
|
|
||||||
|
if (!M_CheckParm("-dedicated"))
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
"Startup error",
|
"Startup error",
|
||||||
text, NULL);
|
text, NULL);
|
||||||
|
|
@ -1919,6 +1921,7 @@ void I_Error(const char *error, ...)
|
||||||
// Implement message box with SDL_ShowSimpleMessageBox,
|
// Implement message box with SDL_ShowSimpleMessageBox,
|
||||||
// which should fail gracefully if it can't put a message box up
|
// which should fail gracefully if it can't put a message box up
|
||||||
// on the target system
|
// on the target system
|
||||||
|
if (!M_CheckParm("-dedicated"))
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
"SRB2Kart "VERSIONSTRING" Recursive Error",
|
"SRB2Kart "VERSIONSTRING" Recursive Error",
|
||||||
buffer, NULL);
|
buffer, NULL);
|
||||||
|
|
@ -1967,9 +1970,11 @@ void I_Error(const char *error, ...)
|
||||||
// Implement message box with SDL_ShowSimpleMessageBox,
|
// Implement message box with SDL_ShowSimpleMessageBox,
|
||||||
// which should fail gracefully if it can't put a message box up
|
// which should fail gracefully if it can't put a message box up
|
||||||
// on the target system
|
// on the target system
|
||||||
|
if (!M_CheckParm("-dedicated"))
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
"SRB2Kart "VERSIONSTRING" Error",
|
"SRB2Kart "VERSIONSTRING" Error",
|
||||||
buffer, NULL);
|
buffer, NULL);
|
||||||
|
|
||||||
// Note that SDL_ShowSimpleMessageBox does *not* require SDL to be
|
// Note that SDL_ShowSimpleMessageBox does *not* require SDL to be
|
||||||
// initialized at the time, so calling it after SDL_Quit() is
|
// initialized at the time, so calling it after SDL_Quit() is
|
||||||
// perfectly okay! In addition, we do this on purpose so the
|
// perfectly okay! In addition, we do this on purpose so the
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue