Browse Source

engine: netchan: fixed downloading files output directory

pull/2/head
SNMetamorph 2 years ago committed by Alibek Omarov
parent
commit
d72481e5ac
  1. 7
      engine/common/net_chan.c

7
engine/common/net_chan.c

@ -1192,6 +1192,13 @@ qboolean Netchan_CopyFileFragments( netchan_t *chan, sizebuf_t *msg ) @@ -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…
Cancel
Save