Add helpful comments to command line parsing code.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@392 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2006-01-22 12:32:20 +00:00
parent 865ef8f633
commit 22a78c80bc
1 changed files with 10 additions and 2 deletions

View File

@ -41,7 +41,12 @@ BOOL clIntroVideo;
// let the end user into debug mode....
BOOL bAllowDebugMode = FALSE;
// we need to find these early in the boot process
/**************************************************************************
First half of the command line parsing. Also see ParseCommandLine()
below. The parameters here are needed early in the boot process,
while the ones in ParseCommandLine can benefit from debugging being
set up first.
**************************************************************************/
BOOL ParseCommandLineEarly(int argc, char** argv)
{
char *tokenType;
@ -104,7 +109,10 @@ BOOL ParseCommandLineEarly(int argc, char** argv)
return TRUE;
}
// note that render mode must come before resolution flag.
/**************************************************************************
Second half of command line parsing. See ParseCommandLineEarly() for
the first half. Note that render mode must come before resolution flag.
**************************************************************************/
BOOL ParseCommandLine(int argc, char** argv)
{
// char seps[] = " ,\t\n";