Skip to content

Commit

Permalink
Verbosity func added, commented out obsolete queries
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 22, 2003
1 parent 0b7f1da commit cb0c2a3
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions doomsday/Src/dd_main.c
Expand Up @@ -181,6 +181,19 @@ void DD_SetDefsFile(char *filename)
sprintf(defsFileName, "%sDefs\\%s", ddBasePath, filename);
}

//===========================================================================
// DD_Verbosity
// Sets the level of verbosity that was requested using the -verbose
// option(s).
//===========================================================================
void DD_Verbosity(void)
{
int i;

for(i = 1, verbose = 0; i < Argc(); ++i)
if(ArgRecognize("-verbose", Argv(i))) verbose++;
}

//===========================================================================
// DD_Main
// Engine and game initialization. When complete, starts the game loop.
Expand All @@ -193,7 +206,7 @@ void DD_Main(void)
char *outfilename = "Doomsday.out";
boolean userdir_ok = true;

verbose = ArgCheck("-verbose") != 0;
DD_Verbosity();

// We'll redirect stdout to a log file.
CheckArg("-out", &outfilename);
Expand Down Expand Up @@ -440,7 +453,7 @@ void DD_Main(void)
// (shortcut for -command "net init tcpip; net server start").
if(ArgExists("-server"))
{
if(!N_InitService(JTNET_SERVICE_TCPIP))
if(!N_InitService(NSP_TCPIP, true))
Con_Message("Can't start server: TCP/IP not available.\n");
else
Con_Executef(false, "net server start");
Expand Down Expand Up @@ -522,10 +535,10 @@ void DD_AddStartupWAD(char *file/*, boolean inc_base*/)
//===========================================================================
void DD_CheckQuery(int query, int parm)
{
int i;
/* int i;
jtnetserver_t *buf;
serverdataquery_t *sdq;
modemdataquery_t *mdq;
modemdataquery_t *mdq;*/

switch(query)
{
Expand All @@ -540,7 +553,7 @@ void DD_CheckQuery(int query, int parm)
queryResult = (int) N_GetProtocolName();
break;

case DD_NUM_SERVERS:
/* case DD_NUM_SERVERS:
queryResult = jtNetGetServerInfo(NULL, 0);
if(queryResult < 0) queryResult = 0;
break;
Expand Down Expand Up @@ -579,11 +592,11 @@ void DD_CheckQuery(int query, int parm)
case DD_FLOW_CONTROL:
queryResult = jtNetGetInteger(JTNET_FLOWCONTROL);
break;
break;*/
}
break;

case DD_SERVER_DATA_QUERY:
/* case DD_SERVER_DATA_QUERY:
sdq = (serverdataquery_t*) parm;
i = jtNetGetServerInfo(NULL, 0);
if(i < 0) i = 0;
Expand All @@ -604,12 +617,12 @@ void DD_CheckQuery(int query, int parm)
}
free(buf);
}
break;
break;*/

case DD_MODEM_DATA_QUERY:
/* case DD_MODEM_DATA_QUERY:
mdq = (modemdataquery_t*) parm;
mdq->list = jtNetGetStringList(JTNET_MODEM_LIST, &mdq->num);
break;
break;*/

default:
break;
Expand Down

0 comments on commit cb0c2a3

Please sign in to comment.