mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Tweak the fatal engine initialization error and game already running dialog boxes a bit
git-svn-id: https://svn.eduke32.com/eduke32@7921 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/src/build.cpp
This commit is contained in:
parent
4189e9d287
commit
32cd1ae4dd
2 changed files with 9 additions and 5 deletions
|
@ -1492,7 +1492,11 @@ static int32_t bakrendmode;
|
||||||
#endif
|
#endif
|
||||||
static int32_t baktile;
|
static int32_t baktile;
|
||||||
|
|
||||||
|
#ifdef APPNAME
|
||||||
|
char apptitle[256] = APPNAME;
|
||||||
|
#else
|
||||||
char apptitle[256] = "Build Engine";
|
char apptitle[256] = "Build Engine";
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Internal Engine Functions
|
// Internal Engine Functions
|
||||||
|
|
|
@ -5875,10 +5875,10 @@ static void G_HandleMemErr(int32_t lineNum, const char *fileName, const char *fu
|
||||||
|
|
||||||
static void G_FatalEngineError(void)
|
static void G_FatalEngineError(void)
|
||||||
{
|
{
|
||||||
wm_msgbox("Build Engine Initialization Error",
|
wm_msgbox("Fatal Engine Initialization Error",
|
||||||
"There was a problem initializing the Build engine: %s", engineerrstr);
|
"There was a problem initializing the engine: %s\n\nThe application will now close.", engineerrstr);
|
||||||
G_Cleanup();
|
G_Cleanup();
|
||||||
ERRprintf("G_Startup: There was a problem initializing the Build engine: %s\n", engineerrstr);
|
ERRprintf("G_Startup: There was a problem initializing the engine: %s\n", engineerrstr);
|
||||||
exit(6);
|
exit(6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6223,9 +6223,9 @@ int app_main(int argc, char const * const * argv)
|
||||||
if (!G_CheckCmdSwitch(argc, argv, "-noinstancechecking") && win_checkinstance())
|
if (!G_CheckCmdSwitch(argc, argv, "-noinstancechecking") && win_checkinstance())
|
||||||
{
|
{
|
||||||
#ifdef EDUKE32_STANDALONE
|
#ifdef EDUKE32_STANDALONE
|
||||||
if (!wm_ynbox(APPNAME, APPNAME " is already running. "
|
if (!wm_ynbox(APPNAME, "It looks like " APPNAME " is already running.\n\n"
|
||||||
#else
|
#else
|
||||||
if (!wm_ynbox(APPNAME, "Another Build game is currently running. "
|
if (!wm_ynbox(APPNAME, "It looks like the game is already running.\n\n"
|
||||||
#endif
|
#endif
|
||||||
"Are you sure you want to start another copy?"))
|
"Are you sure you want to start another copy?"))
|
||||||
return 3;
|
return 3;
|
||||||
|
|
Loading…
Reference in a new issue