From 9a5c207939ed554e8ac00587cce3ec83798cfbc1 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 24 Sep 2006 13:27:55 +0000 Subject: Add "extra parameters" dialog for specifying exra command-line parameters. Move this and "UDP port" setting to a separate "Advanced" section. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 661 --- setup/multiplayer.c | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/setup/multiplayer.c b/setup/multiplayer.c index 1b11772c..08098125 100644 --- a/setup/multiplayer.c +++ b/setup/multiplayer.c @@ -26,6 +26,7 @@ #include "textscreen.h" #define NUM_WADS 10 +#define NUM_EXTRA_PARAMS 10 typedef enum { @@ -53,6 +54,7 @@ char *player_name; char *chatmacros[10]; char *wads[NUM_WADS] = {}; +char *extra_params[NUM_EXTRA_PARAMS] = {}; int skill = 0; int nomonsters = 0; int deathmatch = 0; @@ -216,6 +218,20 @@ static void OpenWadsWindow(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(user_data)) } } +static void OpenExtraParamsWindow(TXT_UNCAST_ARG(widget), + TXT_UNCAST_ARG(user_data)) +{ + txt_window_t *window; + int i; + + window = TXT_NewWindow("Extra command line parameters"); + + for (i=0; i