summaryrefslogtreecommitdiff
path: root/src/heretic
diff options
context:
space:
mode:
authorSimon Howard2008-09-27 01:01:00 +0000
committerSimon Howard2008-09-27 01:01:00 +0000
commit861677f802dada9be3e281654d6d02e6952ee680 (patch)
tree00c189ddce6201c73ef4a03e1d4badaca6869e20 /src/heretic
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
Diffstat (limited to 'src/heretic')
-rw-r--r--src/heretic/d_main.c7
1 files changed, 7 insertions, 0 deletions
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__