added a macro for specifying all the cvar properties. This will simplify stuff for Q2.
Also added trace_endcontents and trace_surfaceflags. File system (still too selectivly) reads gz files. Fixed a buffer overflow in the http client. Made server downloads decompress zipped files to a temporary file. This should make it download them faster. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1943 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
bc1f25a11b
commit
6430b9b214
57 changed files with 931 additions and 658 deletions
|
@ -487,7 +487,7 @@ qboolean HTTP_CL_Get(char *url, char *localfile, void (*NotifyFunction)(char *lo
|
|||
con->NotifyFunction = NotifyFunction;
|
||||
if (!NotifyFunction)
|
||||
Con_Printf("No NotifyFunction\n");
|
||||
strcpy(con->filename, localfile);
|
||||
Q_strncpyz(con->filename, localfile, sizeof(con->filename));
|
||||
|
||||
slash = strchr(con->filename, '?');
|
||||
if (slash)
|
||||
|
|
|
@ -308,11 +308,11 @@ IWEBFILE *IWebFOpenRead(char *name) //fread(name, "rb");
|
|||
#else
|
||||
|
||||
#ifndef CLIENTONLY
|
||||
cvar_t ftpserver = {"sv_ftp", "0"};
|
||||
cvar_t httpserver = {"sv_http", "0"};
|
||||
cvar_t sv_readlevel = {"sv_readlevel", "0"}; //default to allow anyone
|
||||
cvar_t sv_writelevel = {"sv_writelevel", "35"}; //allowed to write to uploads/uname
|
||||
cvar_t sv_fulllevel = {"sv_fulllevel", "51"}; //allowed to write anywhere, replace any file...
|
||||
cvar_t ftpserver = SCVAR("sv_ftp", "0");
|
||||
cvar_t httpserver = SCVAR("sv_http", "0");
|
||||
cvar_t sv_readlevel = SCVAR("sv_readlevel", "0"); //default to allow anyone
|
||||
cvar_t sv_writelevel = SCVAR("sv_writelevel", "35"); //allowed to write to uploads/uname
|
||||
cvar_t sv_fulllevel = SCVAR("sv_fulllevel", "51"); //allowed to write anywhere, replace any file...
|
||||
#endif
|
||||
|
||||
//this file contains functions called from each side.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue