From f33cc5793a27a7e92ec5eb803ceed8a358116e3f Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 8 Jan 2008 19:37:10 +0000 Subject: [PATCH] remove -appdata option... make -mygames option instead (easier to find for users). As before, only use that path if explicitly specified or if there is no other way. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7937 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fs.c b/fs.c index 186c06ae..64b27548 100644 --- a/fs.c +++ b/fs.c @@ -1016,7 +1016,7 @@ void FS_AddGameHierarchy (const char *dir) int i; char userdir[MAX_QPATH]; #ifdef WIN32 - TCHAR appdata[MAX_PATH + 1]; + TCHAR mydocsdir[MAX_PATH + 1]; #else const char *homedir; #endif @@ -1028,8 +1028,9 @@ void FS_AddGameHierarchy (const char *dir) // Add the personal game directory #ifdef WIN32 - if(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, appdata) == S_OK) - dpsnprintf(userdir, sizeof(userdir), "%s/%s/", appdata, gameuserdirname); + if(SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, 0, mydocsdir) == S_OK) + dpsnprintf(userdir, sizeof(userdir), "%s/My Games/%s/", mydocsdir, gameuserdirname); + fprintf(stderr, "userdir = %s\n", userdir); #else homedir = getenv ("HOME"); if(homedir) @@ -1037,7 +1038,7 @@ void FS_AddGameHierarchy (const char *dir) #endif #ifdef WIN32 - if(!COM_CheckParm("-appdata")) + if(!COM_CheckParm("-mygames")) { int fd = open (va("%s%s/config.cfg", fs_basedir, dir), O_WRONLY | O_CREAT, 0666); // note: no O_TRUNC here! if(fd >= 0) -- 2.39.2