summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2008-09-27 01:01:00 +0000
committerSimon Howard2008-09-27 01:01:00 +0000
commit861677f802dada9be3e281654d6d02e6952ee680 (patch)
tree00c189ddce6201c73ef4a03e1d4badaca6869e20
parentfc4f278bc33c1d3d5a9f29226a092fadd141dfac (diff)
downloadchocolate-doom-861677f802dada9be3e281654d6d02e6952ee680.tar.gz
chocolate-doom-861677f802dada9be3e281654d6d02e6952ee680.tar.bz2
chocolate-doom-861677f802dada9be3e281654d6d02e6952ee680.zip
Set the title bar in Heretic.
Subversion-branch: /branches/raven-branch Subversion-revision: 1292
-rw-r--r--HH-TODO2
-rw-r--r--src/heretic/d_main.c7
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__