Add FS_BaseDir_BuildOSPath and replace hacky uses of FS_BuildOSPath
This commit is contained in:
1 parent
4b379e447c
commit
cadc8ab017
3 files changed
+24
-20
No files matched your search
@@ -2233,8 +2233,7 @@ void CL_NextDownload(void)
|
||||
// A download has finished, check whether this matches a referenced checksum
|
||||
if(*clc.downloadName)
|
||||
{
|
||||
char *zippath = FS_BuildOSPath(Cvar_VariableString("fs_homepath"), clc.downloadName, "");
|
||||
zippath[strlen(zippath)-1] = '\0';
|
||||
char *zippath = FS_BaseDir_BuildOSPath(Cvar_VariableString("fs_homepath"), clc.downloadName);
|
||||
|
||||
if(!FS_CompareZipChecksum(zippath))
|
||||
Com_Error(ERR_DROP, "Incorrect checksum for file: %s", clc.downloadName);
|
||||
|
||||
Reference in new issue
Block a user