Make sure -homedir arg ends with a slash, to avoid messy surprises.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5764 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
6094fc6ab3
commit
378570256c
1 changed files with 2 additions and 0 deletions
|
@ -6964,6 +6964,8 @@ static void COM_InitHomedir(ftemanifest_t *man)
|
||||||
if (i && i+1<com_argc)
|
if (i && i+1<com_argc)
|
||||||
{ //explicitly override the homedir.
|
{ //explicitly override the homedir.
|
||||||
Q_strncpyz(com_homepath, com_argv[i+1], sizeof(com_homepath));
|
Q_strncpyz(com_homepath, com_argv[i+1], sizeof(com_homepath));
|
||||||
|
if (*com_homepath && com_homepath[strlen(com_homepath)-1] != '/')
|
||||||
|
Q_strncatz(com_homepath, "/", sizeof(com_homepath));
|
||||||
com_homepathusable = true;
|
com_homepathusable = true;
|
||||||
}
|
}
|
||||||
if (COM_CheckParm("-usehome"))
|
if (COM_CheckParm("-usehome"))
|
||||||
|
|
Loading…
Reference in a new issue