]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
split FS_Open into FS_OpenRealFile and FS_OpenVirtualFile (read-only),
[xonotic/darkplaces.git] / cl_parse.c
index 07ae54f4982fb7ceee2117bffc843a25c33bf34e..d5cb5896af55d0020af023d9f3fa8c1548bf76bc 100644 (file)
@@ -434,7 +434,7 @@ static qboolean QW_CL_CheckOrDownloadFile(const char *filename)
        qfile_t *file;
 
        // see if the file already exists
-       file = FS_Open(filename, "rb", true, false);
+       file = FS_OpenVirtualFile(filename, true);
        if (file)
        {
                FS_Close(file);
@@ -1640,7 +1640,7 @@ void CL_ParseServerInfo (void)
 
                Con_Printf ("Auto-recording to %s.\n", demofile);
 
-               cls.demofile = FS_Open (demofile, "wb", false, false);
+               cls.demofile = FS_OpenRealFile(demofile, "wb", false);
                if (cls.demofile)
                {
                        cls.forcetrack = -1;