diff options
author | Simon Howard | 2009-05-10 19:00:22 +0000 |
---|---|---|
committer | Simon Howard | 2009-05-10 19:00:22 +0000 |
commit | 1d408321cbcdc72826d3d0939b12410d6130c889 (patch) | |
tree | 48666bcf9dae9adaf19c3ad698a6a1ee9ce84cee /src/setup/mode.c | |
parent | 3c92c5807e2eacdf84932d385d5041dfb311a26c (diff) | |
download | chocolate-doom-1d408321cbcdc72826d3d0939b12410d6130c889.tar.gz chocolate-doom-1d408321cbcdc72826d3d0939b12410d6130c889.tar.bz2 chocolate-doom-1d408321cbcdc72826d3d0939b12410d6130c889.zip |
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
Diffstat (limited to 'src/setup/mode.c')
-rw-r--r-- | src/setup/mode.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} + |