- Confirm patch setting writedir for mods. (Ludwig Nussel)

(icculus patchset #13,#14)
This commit is contained in:
Jamie Wilkinson 2002-12-01 05:04:34 +00:00
parent 1a3d53810a
commit 8cf067fc33

View file

@ -550,14 +550,12 @@ FS_AddHomeAsGameDirectory
Use ~/.quake2/dir as fs_gamedir
============
*/
void FS_AddHomeAsGameDirectory (char *dir)
{
void FS_AddHomeAsGameDirectory (char * dir) {
#ifndef _WIN32
char gdir[MAX_OSPATH];
char * homedir = getenv("HOME");
if(homedir)
{
if (homedir) {
int len = snprintf(gdir, sizeof(gdir), "%s/.quake2/%s/", homedir, dir);
Com_Printf("using %s for writing\n",gdir);
@ -662,7 +660,6 @@ void FS_SetGamedir (char *dir)
if (dedicated && !dedicated->value)
Cbuf_AddText ("vid_restart\nsnd_restart\n");
// now add new entries for
if (!strcmp(dir,BASEDIRNAME) || (*dir == 0))
{