From 1d408321cbcdc72826d3d0939b12410d6130c889 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 10 May 2009 19:00:22 +0000 Subject: Use the internal IWAD search for the setup multiplayer dialogs rather than the -findiwads command line hack. Subversion-branch: /branches/raven-branch Subversion-revision: 1516 --- 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 9426e10a..014e034c 100644 --- a/src/setup/mode.c +++ b/src/setup/mode.c @@ -46,6 +46,7 @@ #include "mode.h" GameMission_t gamemission; +static iwad_t **iwads; typedef struct { @@ -172,6 +173,7 @@ puts(executable); static void SetMission(mission_config_t *config) { + iwads = D_FindAllIWADs(config->mask); gamemission = config->mission; SetExecutable(config); M_SetConfigFilenames(config->config_file, config->extra_config_file); @@ -299,3 +301,8 @@ char *GetExecutableName(void) return executable; } +iwad_t **GetIwads(void) +{ + return iwads; +} + -- cgit v1.2.3