summaryrefslogtreecommitdiff
path: root/src/setup/mode.c
diff options
context:
space:
mode:
authorSimon Howard2013-09-20 23:50:44 +0000
committerSimon Howard2013-09-20 23:50:44 +0000
commit5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce (patch)
treeac7c18a973944e298611b8ba3a9321812fe6c7a3 /src/setup/mode.c
parentf1d79f495d4ad394c87d7fc11132c120736658fa (diff)
downloadchocolate-doom-5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce.tar.gz
chocolate-doom-5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce.tar.bz2
chocolate-doom-5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce.zip
Set setup tool title so that it it shows the name of the correct game
being configured, not just always "Chocolate Doom". Subversion-branch: /branches/v2-branch Subversion-revision: 2669
Diffstat (limited to 'src/setup/mode.c')
-rw-r--r--src/setup/mode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/setup/mode.c b/src/setup/mode.c
index 88924ad8..f5387750 100644
--- a/src/setup/mode.c
+++ b/src/setup/mode.c
@@ -112,6 +112,7 @@ static int screenblocks = 9;
static int detailLevel = 0;
static char *savedir = NULL;
static char *executable = NULL;
+static char *game_title = "Doom";
static char *back_flat = "F_PAVE01";
static int comport = 0;
static char *nickname = NULL;
@@ -223,6 +224,7 @@ static void SetMission(mission_config_t *config)
iwads = D_FindAllIWADs(config->mask);
gamemission = config->mission;
SetExecutable(config);
+ game_title = config->label;
M_SetConfigFilenames(config->config_file, config->extra_config_file);
}
@@ -374,6 +376,11 @@ char *GetExecutableName(void)
return executable;
}
+char *GetGameTitle(void)
+{
+ return game_title;
+}
+
iwad_t **GetIwads(void)
{
return iwads;