XDG home directory support

This commit is contained in:
Tim Angus committed 2025-10-19 15:58:27 +01:00
1 parent da4f9bd13d
commit 0ebf1df742
18 files changed
+527 -143

No files matched your search

+3 -3
View File
@@ -181,10 +181,10 @@ Sys_PIDFileName
*/
static char *Sys_PIDFileName( const char *gamedir )
{
const char *homePath = Cvar_VariableString( "fs_homepath" );
const char *homeStatePath = Cvar_VariableString( "fs_homestatepath" );
if( *homePath != '\0' )
return va( "%s/%s/%s", homePath, gamedir, PID_FILENAME );
if( *homeStatePath != '\0' )
return va( "%s/%s/%s", homeStatePath, gamedir, PID_FILENAME );
return NULL;
}