2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-16 16:48:13 +03:00

Merge pull request #4 from WPMGPRoSToTeMa/master

Fixed download bug (creating directory bug)
This commit is contained in:
dreamstalker 2015-05-08 17:38:47 +04:00
commit 61a97df241

View File

@ -1558,9 +1558,17 @@ qboolean Netchan_CopyFileFragments(netchan_t *chan)
COM_FixSlashes(filedir); COM_FixSlashes(filedir);
pszFileName = strrchr(filedir, '\\'); pszFileName = strrchr(filedir, '\\');
if (pszFileName) if (pszFileName)
{
*pszFileName = 0; *pszFileName = 0;
#ifdef REHLDS_FIXES
FS_CreateDirHierarchy(filedir, "GAMEDOWNLOAD");
#endif
}
#ifndef REHLDS_FIXES
FS_CreateDirHierarchy(filedir, "GAMEDOWNLOAD"); FS_CreateDirHierarchy(filedir, "GAMEDOWNLOAD");
#endif
handle = FS_OpenPathID(filename, "wb", "GAMEDOWNLOAD"); handle = FS_OpenPathID(filename, "wb", "GAMEDOWNLOAD");
if (!handle) if (!handle)
{ {