mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-11-10 15:22:16 +00:00
- Confirm patch setting writedir for mods. (Ludwig Nussel)
(icculus patchset #13,#14)
This commit is contained in:
parent
1a3d53810a
commit
8cf067fc33
1 changed files with 13 additions and 16 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue