mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
Fixed download bug (creating directory bug)
This commit is contained in:
parent
1d6b7f1a02
commit
73b9448c0c
@ -1558,9 +1558,17 @@ qboolean Netchan_CopyFileFragments(netchan_t *chan)
|
||||
COM_FixSlashes(filedir);
|
||||
pszFileName = strrchr(filedir, '\\');
|
||||
if (pszFileName)
|
||||
{
|
||||
*pszFileName = 0;
|
||||
|
||||
#ifdef REHLDS_FIXES
|
||||
FS_CreateDirHierarchy(filedir, "GAMEDOWNLOAD");
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef REHLDS_FIXES
|
||||
FS_CreateDirHierarchy(filedir, "GAMEDOWNLOAD");
|
||||
#endif
|
||||
handle = FS_OpenPathID(filename, "wb", "GAMEDOWNLOAD");
|
||||
if (!handle)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user