From 5af0b0450d5e7ae30ec6cef585f1f5c4ef4dddce Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 20 Sep 2013 23:50:44 +0000 Subject: 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 --- src/setup/mode.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/setup/mode.c') 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; -- cgit v1.2.3