ref: 861677f802dada9be3e281654d6d02e6952ee680
parent: fc4f278bc33c1d3d5a9f29226a092fadd141dfac
author: Simon Howard <fraggle@gmail.com>
date: Fri Sep 26 21:01:00 EDT 2008
Set the title bar in Heretic. Subversion-branch: /branches/raven-branch Subversion-revision: 1292
--- 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 @@
* 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
--- 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 @@
debugfile = fopen(filename, "w");
}
I_InitGraphics();
+ I_SetWindowTitle(gamedescription);
I_SetGrabMouseCallback(D_GrabMouseCallback);
while (1)
@@ -914,6 +916,8 @@
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,6 +931,7 @@
if (W_CheckNumForName("E2M1") == -1)
{
gamemode = shareware;
+ gamedescription = "Heretic (shareware)";
}
else if (W_CheckNumForName("EXTENDED") != -1)
{
@@ -933,10 +938,12 @@
// 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__