1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2020-09-15 08:55:53 +00:00
parent 6094fc6ab3
commit 378570256c

View file

@ -6964,6 +6964,8 @@ static void COM_InitHomedir(ftemanifest_t *man)
if (i && i+1<com_argc)
{ //explicitly override the homedir.
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;
}
if (COM_CheckParm("-usehome"))