mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
minor commandline arg additions/fixes
git-svn-id: https://svn.eduke32.com/eduke32@1256 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b5c4b521f7
commit
ae1e1a257e
2 changed files with 15 additions and 2 deletions
|
@ -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++;
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue