XDG home directory support
This commit is contained in:
1 parent
da4f9bd13d
commit
0ebf1df742
18 files changed
+527
-143
No files matched your search
@@ -88,7 +88,7 @@ void Sys_SetFloatEnv(void)
|
||||
Sys_DefaultHomePath
|
||||
================
|
||||
*/
|
||||
char *Sys_DefaultHomePath( void )
|
||||
static char *Sys_DefaultHomePath( void )
|
||||
{
|
||||
static char homePath[ MAX_OSPATH ] = { 0 };
|
||||
|
||||
@@ -108,12 +108,16 @@ char *Sys_DefaultHomePath( void )
|
||||
if(com_homepath->string[0])
|
||||
Q_strcat(homePath, sizeof(homePath), com_homepath->string);
|
||||
else
|
||||
Q_strcat(homePath, sizeof(homePath), HOMEPATH_NAME_WIN);
|
||||
Q_strcat(homePath, sizeof(homePath), HOMEPATH_NAME);
|
||||
}
|
||||
|
||||
return homePath;
|
||||
}
|
||||
|
||||
char *Sys_DefaultHomeConfigPath(void) { return Sys_DefaultHomePath(); }
|
||||
char *Sys_DefaultHomeDataPath(void) { return Sys_DefaultHomePath(); }
|
||||
char *Sys_DefaultHomeStatePath(void) { return Sys_DefaultHomePath(); }
|
||||
|
||||
/*
|
||||
================
|
||||
Sys_SteamPath
|
||||
|
||||
Reference in new issue
Block a user