]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
remove -appdata option... make -mygames option instead (easier to find for users...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 8 Jan 2008 19:37:10 +0000 (19:37 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 8 Jan 2008 19:37:10 +0000 (19:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7937 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 186c06aeb1d54ffab2c95389b3d546d320aca3cd..64b275485d95ba1b6f6fbefb09b3f4087eb8c2ab 100644 (file)
--- 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)