From 79fba287e607d1e3d0dfab3aa1d23257111cc787 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Fri, 11 Jun 2010 22:19:00 +0000 Subject: Ported HTTP downloading implementation from R1Q2. Added ‘--enable-curl’ option to configure script. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/cl_parse.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/cl_parse.c') 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 -- cgit v1.2.3