summaryrefslogtreecommitdiff
path: root/src/setup/mode.c
diff options
context:
space:
mode:
authorSimon Howard2009-05-10 19:00:22 +0000
committerSimon Howard2009-05-10 19:00:22 +0000
commit1d408321cbcdc72826d3d0939b12410d6130c889 (patch)
tree48666bcf9dae9adaf19c3ad698a6a1ee9ce84cee /src/setup/mode.c
parent3c92c5807e2eacdf84932d385d5041dfb311a26c (diff)
downloadchocolate-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.c7
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;
+}
+