From 1a5dde3a294137590c7d447d448963c4e6607e32 Mon Sep 17 00:00:00 2001 From: Dennis Schridde Date: Sat, 19 Jan 2008 23:05:30 +0000 Subject: [PATCH] Use "Local Settings/Application Data" instead of "My Documents\My Games", since that is apperently what MS recommends... git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3511 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index c27bc7755..405a90dd2 100644 --- a/src/main.c +++ b/src/main.c @@ -255,12 +255,8 @@ static void getPlatformUserDir(char * const tmpstr, size_t const size) { #if defined(WZ_OS_WIN) ASSERT(size >= MAX_PATH, "size (%u) is smaller than the required minimum of MAX_PATH (%u)", size, (size_t)MAX_PATH); - if ( SUCCEEDED( SHGetFolderPathA( NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, tmpstr ) ) ) - { + if ( SUCCEEDED( SHGetFolderPathA( NULL, CSIDL_LOCAL_APPDATA|CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, tmpstr ) ) ) strlcat(tmpstr, PHYSFS_getDirSeparator(), size); - strlcat(tmpstr, "My Games", size); - strlcat(tmpstr, PHYSFS_getDirSeparator(), size); - } else #elif defined(WZ_OS_MAC) short vol_ref;