Add FS_BaseDir_BuildOSPath and replace hacky uses of FS_BuildOSPath

This commit is contained in:
Tim Angus committed 2025-09-04 15:40:55 +01:00
1 parent 4b379e447c
commit cadc8ab017
3 files changed
+24 -20

No files matched your search

+1 -2
View File
@@ -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);