summaryrefslogtreecommitdiff
path: root/src/setup
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup')
-rw-r--r--src/setup/multiplayer.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c
index e9f18799..eac9d550 100644
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -68,6 +68,8 @@ static int found_iwad_selected;
static char *iwadfile;
+static char *wad_extensions[] = { "wad", "lmp", "deh", NULL };
+
static char *doom_skills[] =
{
"I'm too young to die.", "Hey, not too rough.", "Hurt me plenty.",
@@ -163,7 +165,7 @@ static void AddWADs(execute_context_t *exec)
{
int have_wads = 0;
int i;
-
+
for (i=0; i<NUM_WADS; ++i)
{
if (wads[i] != NULL && strlen(wads[i]) > 0)
@@ -277,7 +279,7 @@ static void StartGame(int multiplayer)
AddWADs(exec);
TXT_Shutdown();
-
+
M_SaveDefaults();
PassThroughArguments(exec);
@@ -610,7 +612,9 @@ static void OpenWadsWindow(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(user_data))
for (i=0; i<NUM_WADS; ++i)
{
- TXT_AddWidget(window, TXT_NewInputBox(&wads[i], 60));
+ TXT_AddWidget(window,
+ TXT_NewFileSelector(&wads[i], 60, "Select a WAD file",
+ wad_extensions));
}
}