mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +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);
|
G_AddGroup(c);
|
||||||
COPYARG(i);
|
COPYARG(i);
|
||||||
break;
|
break;
|
||||||
|
case 'x':
|
||||||
|
case 'X':
|
||||||
|
c++;
|
||||||
|
if (!*c) break;
|
||||||
|
gamecon = c;
|
||||||
|
COPYARG(i);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
k = Bstrchr(c,'.');
|
k = Bstrrchr(c,'.');
|
||||||
if (k)
|
if (k)
|
||||||
{
|
{
|
||||||
if (!Bstrcasecmp(k,".grp") || !Bstrcasecmp(k,".zip"))
|
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);
|
initprintf("Using DEF file: %s.\n",defsfilename);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (!Bstrcasecmp(k,".con"))
|
||||||
|
{
|
||||||
|
gamecon = (char *)argv[i++];
|
||||||
|
COPYARG(i);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
|
|
@ -9944,7 +9944,7 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
k = Bstrchr(c,'.');
|
k = Bstrrchr(c,'.');
|
||||||
if (k)
|
if (k)
|
||||||
{
|
{
|
||||||
if (!Bstrcasecmp(k,".map"))
|
if (!Bstrcasecmp(k,".map"))
|
||||||
|
|
Loading…
Reference in a new issue