engine: netchan: fixed downloading files output directory

This commit is contained in:
SNMetamorph 2022-12-09 17:30:35 +04:00 committed by Alibek Omarov
parent dbe9309475
commit d72481e5ac
1 changed files with 7 additions and 0 deletions

View File

@ -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 ))