minor commandline arg additions/fixes

git-svn-id: https://svn.eduke32.com/eduke32@1256 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2009-03-23 15:36:59 +00:00
parent b5c4b521f7
commit ae1e1a257e
2 changed files with 15 additions and 2 deletions

View file

@ -8074,11 +8074,18 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
G_AddGroup(c);
COPYARG(i);
break;
case 'x':
case 'X':
c++;
if (!*c) break;
gamecon = c;
COPYARG(i);
break;
}
}
else
{
k = Bstrchr(c,'.');
k = Bstrrchr(c,'.');
if (k)
{
if (!Bstrcasecmp(k,".grp") || !Bstrcasecmp(k,".zip"))
@ -8094,6 +8101,12 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
initprintf("Using DEF file: %s.\n",defsfilename);
continue;
}
if (!Bstrcasecmp(k,".con"))
{
gamecon = (char *)argv[i++];
COPYARG(i);
continue;
}
}
}
i++;

View file

@ -9944,7 +9944,7 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
}
else
{
k = Bstrchr(c,'.');
k = Bstrrchr(c,'.');
if (k)
{
if (!Bstrcasecmp(k,".map"))