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
master
Dennis Schridde 2008-01-19 23:05:30 +00:00
parent 609ec751dc
commit 1a5dde3a29
1 changed files with 1 additions and 5 deletions

View File

@ -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;