XDG home directory support
This commit is contained in:
1 parent
da4f9bd13d
commit
0ebf1df742
18 files changed
+527
-143
No files matched your search
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user