@@ -742,15 +742,15 @@ void CL_Record_f( void ) {
742742#endif
743743 Com_sprintf (name , sizeof (name ), "demos/%s.%s%d" , demoName , DEMOEXT , com_protocol -> integer );
744744
745- if (!FS_FileExists (name ))
745+ if (!FS_FileExists_HomeData (name ))
746746 break ; // file doesn't exist
747747 }
748748 }
749749
750750 // open the demo file
751751
752752 Com_Printf ("recording to %s.\n" , name );
753- clc .demofile = FS_FOpenFileWrite ( name );
753+ clc .demofile = FS_FOpenFileWrite_HomeData ( name );
754754 if ( !clc .demofile ) {
755755 Com_Printf ("ERROR: couldn't open.\n" );
756756 return ;
@@ -903,7 +903,7 @@ void CL_DemoCompleted( void )
903903 else
904904 numFrames = clc .timeDemoFrames - 1 ;
905905
906- f = FS_FOpenFileWrite ( cl_timedemoLog -> string );
906+ f = FS_FOpenFileWrite_HomeData ( cl_timedemoLog -> string );
907907 if ( f )
908908 {
909909 FS_Printf ( f , "# %s" , buffer );
@@ -2197,7 +2197,7 @@ static void CL_BeginHttpDownload( const char *remoteURL ) {
21972197 CL_HTTP_BeginDownload (remoteURL );
21982198 Q_strncpyz (clc .downloadURL , remoteURL , sizeof (clc .downloadURL ));
21992199
2200- clc .download = FS_BaseDir_FOpenFileWrite (clc .downloadTempName );
2200+ clc .download = FS_BaseDir_FOpenFileWrite_HomeData (clc .downloadTempName );
22012201 if (!clc .download ) {
22022202 Com_Error (ERR_DROP , "CL_BeginHTTPDownload: failed to open "
22032203 "%s for writing" , clc .downloadTempName );
@@ -2233,7 +2233,7 @@ void CL_NextDownload(void)
22332233 // A download has finished, check whether this matches a referenced checksum
22342234 if (* clc .downloadName )
22352235 {
2236- char * zippath = FS_BaseDir_BuildOSPath (Cvar_VariableString ("fs_homepath " ), clc .downloadName );
2236+ char * zippath = FS_BaseDir_BuildOSPath (Cvar_VariableString ("fs_homedatapath " ), clc .downloadName );
22372237
22382238 if (!FS_CompareZipChecksum (zippath ))
22392239 Com_Error (ERR_DROP , "Incorrect checksum for file: %s" , clc .downloadName );
@@ -2977,7 +2977,7 @@ void CL_Frame ( int msec ) {
29772977 clc .download = 0 ;
29782978 }
29792979
2980- FS_BaseDir_Rename (clc .downloadTempName , clc .downloadName , qfalse );
2980+ FS_BaseDir_Rename_HomeData (clc .downloadTempName , clc .downloadName , qfalse );
29812981 clc .downloadRestart = qtrue ;
29822982 CL_NextDownload ();
29832983 }
@@ -3307,7 +3307,7 @@ void CL_InitRef( void ) {
33073307 ri .FS_FreeFileList = FS_FreeFileList ;
33083308 ri .FS_ListFiles = FS_ListFiles ;
33093309 ri .FS_FileIsInPAK = FS_FileIsInPAK ;
3310- ri .FS_FileExists = FS_FileExists ;
3310+ ri .FS_FileExists = FS_FileExists_HomeData ;
33113311 ri .Cvar_Get = Cvar_Get ;
33123312 ri .Cvar_Set = Cvar_Set ;
33133313 ri .Cvar_SetValue = Cvar_SetValue ;
@@ -3418,7 +3418,7 @@ void CL_Video_f( void )
34183418 Com_sprintf ( filename , MAX_OSPATH , "videos/video%d%d%d%d.avi" ,
34193419 a , b , c , d );
34203420
3421- if ( !FS_FileExists ( filename ) )
3421+ if ( !FS_FileExists_HomeData ( filename ) )
34223422 break ; // file doesn't exist
34233423 }
34243424
@@ -3471,7 +3471,7 @@ static void CL_GenerateQKey(void)
34713471 Com_Printf ( "QKEY building random string\n" );
34723472 Com_RandomBytes ( buff , sizeof (buff ) );
34733473
3474- f = FS_BaseDir_FOpenFileWrite ( QKEY_FILE );
3474+ f = FS_BaseDir_FOpenFileWrite_HomeState ( QKEY_FILE );
34753475 if ( !f ) {
34763476 Com_Printf ( "QKEY could not open %s for write\n" ,
34773477 QKEY_FILE );
0 commit comments