mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: netchan: fixed downloading files output directory
This commit is contained in:
parent
dbe9309475
commit
d72481e5ac
@ -1192,6 +1192,13 @@ qboolean Netchan_CopyFileFragments( netchan_t *chan, sizebuf_t *msg )
|
||||
return false;
|
||||
}
|
||||
|
||||
if( filename[0] != '!' )
|
||||
{
|
||||
string temp_filename;
|
||||
Q_snprintf( temp_filename, sizeof( temp_filename ), "downloaded/%s", filename );
|
||||
Q_strncpy( filename, temp_filename, sizeof( filename ));
|
||||
}
|
||||
|
||||
Q_strncpy( chan->incomingfilename, filename, sizeof( chan->incomingfilename ));
|
||||
|
||||
if( filename[0] != '!' && FS_FileExists( filename, false ))
|
||||
|
Loading…
x
Reference in New Issue
Block a user