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:
terminx 2019-08-08 01:48:55 +00:00 committed by Christoph Oelckers
parent 4189e9d287
commit 32cd1ae4dd
2 changed files with 9 additions and 5 deletions

View file

@ -1492,7 +1492,11 @@ static int32_t bakrendmode;
#endif
static int32_t baktile;
#ifdef APPNAME
char apptitle[256] = APPNAME;
#else
char apptitle[256] = "Build Engine";
#endif
//
// Internal Engine Functions

View file

@ -5875,10 +5875,10 @@ static void G_HandleMemErr(int32_t lineNum, const char *fileName, const char *fu
static void G_FatalEngineError(void)
{
wm_msgbox("Build Engine Initialization Error",
"There was a problem initializing the Build engine: %s", engineerrstr);
wm_msgbox("Fatal Engine Initialization Error",
"There was a problem initializing the engine: %s\n\nThe application will now close.", engineerrstr);
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);
}
@ -6223,9 +6223,9 @@ int app_main(int argc, char const * const * argv)
if (!G_CheckCmdSwitch(argc, argv, "-noinstancechecking") && win_checkinstance())
{
#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
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
"Are you sure you want to start another copy?"))
return 3;