diff options
author | Andrey Nazarov <skuller@skuller.net> | 2010-06-11 22:19:00 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2010-06-11 22:19:00 +0000 |
commit | 79fba287e607d1e3d0dfab3aa1d23257111cc787 (patch) | |
tree | a68d62c0b6064ca1276b75a5b4f422980186663e /source/cl_parse.c | |
parent | bd091577892489e7d4a2fc83a62dccefababf06b (diff) |
Ported HTTP downloading implementation from R1Q2.
Added ‘--enable-curl’ option to configure script.
Diffstat (limited to 'source/cl_parse.c')
-rw-r--r-- | source/cl_parse.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/cl_parse.c b/source/cl_parse.c index 2a988cf..f37872c 100644 --- a/source/cl_parse.c +++ b/source/cl_parse.c @@ -53,6 +53,15 @@ qboolean CL_CheckOrDownloadFile( const char *path ) { return qtrue; } +#if USE_CURL + if( HTTP_QueueDownload( path ) ) { + //we return true so that the precache check keeps feeding us more files. + //since we have multiple HTTP connections we want to minimize latency + //and be constantly sending requests, not one at a time. + return qtrue; + } +#endif + memcpy( cls.download.name, path, len + 1 ); // download to a temp name, and only rename |