From 861677f802dada9be3e281654d6d02e6952ee680 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 27 Sep 2008 01:01:00 +0000 Subject: Set the title bar in Heretic. Subversion-branch: /branches/raven-branch Subversion-revision: 1292 --- HH-TODO | 2 -- src/heretic/d_main.c | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HH-TODO b/HH-TODO index 24098b36..8fc5469c 100644 --- a/HH-TODO +++ b/HH-TODO @@ -8,7 +8,6 @@ Heretic: * Merge r_draw.c to common version and delete duplicate * Multiplayer code to use Chocolate Doom multiplayer code. - * WAD code to use the new locking API * Save config file * Frequency shifted sounds. * Update input code to work properly with vanilla_keyboard_mapping @@ -17,7 +16,6 @@ Heretic: * Savegame code to write structures predictably and endianness-correct * Remove NeXT and WATCOMC defines * Structure packing macros for structures read from disk - * Title bar Hexen: * Merge v_video.c to common version and delete duplicate diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c index 309079b6..4554ebfb 100644 --- a/src/heretic/d_main.c +++ b/src/heretic/d_main.c @@ -39,6 +39,7 @@ GameMission_t gamemission = heretic; GameMode_t gamemode = indetermined; +char *gamedescription = "unknown"; boolean nomonsters; // checkparm of -nomonsters boolean respawnparm; // checkparm of -respawn @@ -222,6 +223,7 @@ void D_DoomLoop(void) debugfile = fopen(filename, "w"); } I_InitGraphics(); + I_SetWindowTitle(gamedescription); I_SetGrabMouseCallback(D_GrabMouseCallback); while (1) @@ -914,6 +916,8 @@ void D_DoomMain(void) printf("M_LoadDefaults: Load system defaults.\n"); M_LoadDefaults(); + //I_AtExit(M_SaveDefaults, false); + printf("Z_Init: Init zone memory allocation daemon.\n"); Z_Init(); @@ -927,16 +931,19 @@ void D_DoomMain(void) if (W_CheckNumForName("E2M1") == -1) { gamemode = shareware; + gamedescription = "Heretic (shareware)"; } else if (W_CheckNumForName("EXTENDED") != -1) { // Presence of the EXTENDED lump indicates the retail version gamemode = retail; + gamedescription = "Heretic (registered)"; } else { gamemode = registered; + gamedescription = "Heretic: Shadow of the Serpent Riders"; } #ifdef __WATCOMC__ -- cgit v1.2.3