mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Instead of displaying "Unknown GRP - EDuke32", simply display "EDuke32".
Much classier this way. git-svn-id: https://svn.eduke32.com/eduke32@4516 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fd78e9f954
commit
f4becd06d5
4 changed files with 31 additions and 13 deletions
|
@ -10373,6 +10373,19 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
void G_UpdateAppTitle(void)
|
||||
{
|
||||
if (g_gameNamePtr)
|
||||
{
|
||||
Bsprintf(tempbuf, "%s - " APPNAME, g_gameNamePtr);
|
||||
wm_setapptitle(tempbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
wm_setapptitle(APPNAME);
|
||||
}
|
||||
}
|
||||
|
||||
static void G_DisplayLogo(void)
|
||||
{
|
||||
int32_t soundanm = 0;
|
||||
|
@ -10389,8 +10402,7 @@ static void G_DisplayLogo(void)
|
|||
flushperms();
|
||||
nextpage();
|
||||
|
||||
Bsprintf(tempbuf, "%s - " APPNAME, g_gameNamePtr);
|
||||
wm_setapptitle(tempbuf);
|
||||
G_UpdateAppTitle();
|
||||
|
||||
S_StopMusic();
|
||||
FX_StopAllSounds(); // JBF 20031228
|
||||
|
@ -11034,8 +11046,7 @@ void G_BackToMenu(void)
|
|||
g_player[myconnectindex].ps->gm = MODE_MENU;
|
||||
M_ChangeMenu(MENU_MAIN);
|
||||
KB_FlushKeyboardQueue();
|
||||
Bsprintf(tempbuf, "%s - " APPNAME, g_gameNamePtr);
|
||||
wm_setapptitle(tempbuf);
|
||||
G_UpdateAppTitle();
|
||||
}
|
||||
|
||||
static int32_t G_EndOfLevel(void)
|
||||
|
@ -11470,7 +11481,7 @@ int32_t app_main(int32_t argc, const char **argv)
|
|||
g_gameType = first->game;
|
||||
g_gameNamePtr = listgrps->name;
|
||||
}
|
||||
else if (!fg) g_gameNamePtr = "Unknown GRP";
|
||||
else if (!fg) g_gameNamePtr = NULL;
|
||||
}
|
||||
|
||||
#ifdef STARTUP_SETUP_WINDOW
|
||||
|
@ -11608,8 +11619,7 @@ int32_t app_main(int32_t argc, const char **argv)
|
|||
|
||||
// gotta set the proper title after we compile the CONs if this is the full version
|
||||
|
||||
Bsprintf(tempbuf, "%s - " APPNAME, g_gameNamePtr);
|
||||
wm_setapptitle(tempbuf);
|
||||
G_UpdateAppTitle();
|
||||
|
||||
if (g_scriptDebug)
|
||||
initprintf("CON debugging activated (level %d).\n",g_scriptDebug);
|
||||
|
@ -12655,8 +12665,7 @@ void G_BonusScreen(int32_t bonusonly)
|
|||
if (g_networkMode == NET_DEDICATED_SERVER)
|
||||
return;
|
||||
|
||||
Bsprintf(tempbuf, "%s - " APPNAME, g_gameNamePtr);
|
||||
wm_setapptitle(tempbuf);
|
||||
G_UpdateAppTitle();
|
||||
|
||||
if (ud.volume_number == 0 && ud.last_level == 8 && boardfilename[0])
|
||||
{
|
||||
|
|
|
@ -372,6 +372,7 @@ void G_GameQuit(void);
|
|||
void G_GetCrosshairColor(void);
|
||||
void G_HandleLocalKeys(void);
|
||||
void G_HandleSpecialKeys(void);
|
||||
void G_UpdateAppTitle(void);
|
||||
void G_PrintGameQuotes(int32_t snum);
|
||||
//void G_SE40(int32_t smoothratio);
|
||||
void G_SetCrosshairColor(int32_t r,int32_t g,int32_t b);
|
||||
|
|
|
@ -5543,8 +5543,7 @@ repeatcase:
|
|||
}
|
||||
gamename[i] = '\0';
|
||||
g_gameNamePtr = Xstrdup(gamename);
|
||||
Bsprintf(tempbuf,"%s - " APPNAME,g_gameNamePtr);
|
||||
wm_setapptitle(tempbuf);
|
||||
G_UpdateAppTitle();
|
||||
}
|
||||
continue;
|
||||
|
||||
|
|
|
@ -1865,9 +1865,18 @@ int32_t G_EnterLevel(int32_t g)
|
|||
if (G_HaveUserMap())
|
||||
{
|
||||
Bstrcpy(levname, boardfilename);
|
||||
Bsprintf(apptitle,"%s - %s - " APPNAME,levname,g_gameNamePtr);
|
||||
if (g_gameNamePtr)
|
||||
Bsprintf(apptitle,"%s - %s - " APPNAME,levname,g_gameNamePtr);
|
||||
else
|
||||
Bsprintf(apptitle,"%s - " APPNAME,levname);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (g_gameNamePtr)
|
||||
Bsprintf(apptitle,"%s - %s - " APPNAME,MapInfo[mii].name,g_gameNamePtr);
|
||||
else
|
||||
Bsprintf(apptitle,"%s - " APPNAME,MapInfo[mii].name);
|
||||
}
|
||||
else Bsprintf(apptitle,"%s - %s - " APPNAME,MapInfo[mii].name,g_gameNamePtr);
|
||||
|
||||
Bstrcpy(tempbuf,apptitle);
|
||||
wm_setapptitle(tempbuf);
|
||||
|
|
Loading…
Reference in a new issue