X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=libcurl.c;h=9aa74850bc1961cd45747e18c04b6b9c22f41ca3;hb=8d376b57de94bafd3bae224088b469649c853028;hp=b7956ff6128d4cb79d2e67c5db9cec96628fba43;hpb=c7a2c4f80c52a0ed0cd85b46646b693f7dc79f7b;p=xonotic%2Fdarkplaces.git diff --git a/libcurl.c b/libcurl.c index b7956ff6..9aa74850 100644 --- a/libcurl.c +++ b/libcurl.c @@ -6,7 +6,7 @@ static cvar_t cl_curl_maxdownloads = {CVAR_SAVE, "cl_curl_maxdownloads","1", "ma static cvar_t cl_curl_maxspeed = {CVAR_SAVE, "cl_curl_maxspeed","100", "maximum download speed (KiB/s)"}; static cvar_t sv_curl_defaulturl = {CVAR_SAVE, "sv_curl_defaulturl","", "default autodownload source URL"}; static cvar_t sv_curl_serverpackages = {CVAR_SAVE, "sv_curl_serverpackages","", "list of required files for the clients, separated by spaces"}; -static cvar_t cl_curl_enabled = {CVAR_SAVE, "cl_curl_enabled","0", "whether client's download support is enabled"}; +static cvar_t cl_curl_enabled = {CVAR_SAVE, "cl_curl_enabled","1", "whether client's download support is enabled"}; /* ================================================================= @@ -330,14 +330,7 @@ static qboolean CURL_OpenLibrary (void) return true; // Load the DLL - if (! Sys_LoadLibrary (dllnames, &curl_dll, curlfuncs)) - { - Con_Printf ("cURL support disabled\n"); - return false; - } - - Con_Printf ("cURL support enabled\n"); - return true; + return Sys_LoadLibrary (dllnames, &curl_dll, curlfuncs); } @@ -1276,7 +1269,7 @@ void Curl_ClearRequirements() } p = sv_curl_serverpackages.string; Con_DPrintf("Require all of: %s\n", p); - while(COM_ParseToken_Simple(&p, false)) + while(COM_ParseToken_Simple(&p, false, false)) { Con_DPrintf("Require: %s\n", com_token); Curl_RequireFile(com_token);