mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-08 01:02:25 +00:00
Merge branch 'no-dedi-sighandle-window' into 'next'
Disable SDL error message on dedicated servers See merge request STJr/SRB2!1735
This commit is contained in:
commit
c00d1e5499
1 changed files with 16 additions and 12 deletions
|
@ -358,9 +358,10 @@ 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);
|
||||||
|
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
if (!M_CheckParm("-dedicated"))
|
||||||
"Process killed by signal",
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
sigmsg, NULL);
|
"Process killed by signal",
|
||||||
|
sigmsg, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NEWSIGNALHANDLER
|
#ifndef NEWSIGNALHANDLER
|
||||||
|
@ -2202,9 +2203,10 @@ static void newsignalhandler_Warn(const char *pr)
|
||||||
|
|
||||||
I_OutputMsg("%s\n", text);
|
I_OutputMsg("%s\n", text);
|
||||||
|
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
if (!M_CheckParm("-dedicated"))
|
||||||
"Startup error",
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
text, NULL);
|
"Startup error",
|
||||||
|
text, NULL);
|
||||||
|
|
||||||
I_ShutdownConsole();
|
I_ShutdownConsole();
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
@ -2405,9 +2407,10 @@ 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
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
if (!M_CheckParm("-dedicated"))
|
||||||
"SRB2 "VERSIONSTRING" Recursive Error",
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
buffer, NULL);
|
"SRB2 "VERSIONSTRING" Recursive Error",
|
||||||
|
buffer, NULL);
|
||||||
|
|
||||||
W_Shutdown();
|
W_Shutdown();
|
||||||
exit(-1); // recursive errors detected
|
exit(-1); // recursive errors detected
|
||||||
|
@ -2449,9 +2452,10 @@ 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
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
if (!M_CheckParm("-dedicated"))
|
||||||
"SRB2 "VERSIONSTRING" Error",
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
buffer, NULL);
|
"SRB2 "VERSIONSTRING" Error",
|
||||||
|
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…
Reference in a new issue