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
@@ -335,10 +335,10 @@ qboolean CL_OpenAVIForWriting( const char *fileName )
return qfalse;
}
if( ( afd.f = FS_FOpenFileWrite( fileName ) ) <= 0 )
if( ( afd.f = FS_FOpenFileWrite_HomeData( fileName ) ) <= 0 )
return qfalse;
if( ( afd.idxF = FS_FOpenFileWrite(
if( ( afd.idxF = FS_FOpenFileWrite_HomeData(
va( "%s" INDEX_FILE_EXTENSION, fileName ) ) ) <= 0 )
{
FS_FCloseFile( afd.f );
@@ -635,7 +635,7 @@ qboolean CL_CloseAVI( void )
FS_FCloseFile( afd.idxF );
// Remove temp index file
FS_HomeRemove( idxFileName );
FS_Remove_HomeData( idxFileName );
// Write the real header
FS_Seek( afd.f, 0, FS_SEEK_SET );