Bug 2813
* Do not detect a seperate homepath on win95, win98, or winme since it's not truly a user-specific dir and therefore provides no advantage * Use CSIDL_APPDATA instead of CSIDL_LOCAL_APPDATA. This means that user-specific game data is now allowed to be part of a user's Roaming Profile
This commit is contained in:
parent
e25fdba4fa
commit
307a4c037a
2 changed files with 30 additions and 2 deletions
|
@ -288,10 +288,17 @@ char *Sys_DefaultHomePath(void) {
|
|||
TCHAR szPath[MAX_PATH];
|
||||
static char path[MAX_OSPATH];
|
||||
|
||||
if( !SUCCEEDED( SHGetFolderPath( NULL, CSIDL_LOCAL_APPDATA,
|
||||
// do not bother using a seperate home directory on versions of
|
||||
// windows that do not offer true per-user home directories
|
||||
// (win98, win95, winme)
|
||||
g_wv.osversion.dwOSVersionInfoSize = sizeof( g_wv.osversion );
|
||||
GetVersionEx( &g_wv.osversion );
|
||||
if( g_wv.osversion.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS )
|
||||
return NULL;
|
||||
|
||||
if( !SUCCEEDED( SHGetFolderPath( NULL, CSIDL_APPDATA,
|
||||
NULL, 0, szPath ) ) )
|
||||
{
|
||||
|
||||
return NULL;
|
||||
}
|
||||
Q_strncpyz( path, szPath, sizeof(path) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue