mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
Merge pull request #439 from devnexen/curl_little_chg
Little code changes proposal.
This commit is contained in:
commit
f75b1c24b5
1 changed files with 2 additions and 3 deletions
|
@ -36,7 +36,7 @@ cvar_t *cl_http_filelists;
|
|||
cvar_t *cl_http_proxy;
|
||||
cvar_t *cl_http_max_connections;
|
||||
|
||||
dlquirks_t dlquirks = { .error = false, .filelist = true, .gamedir = '\0' };
|
||||
dlquirks_t dlquirks = { .error = false, .filelist = true, .gamedir = {'\0'} };
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
@ -255,15 +255,14 @@ static void CL_StartHTTPDownload (dlqueue_t *entry, dlhandle_t *dl)
|
|||
Com_sprintf(dl->URL, sizeof(dl->URL), "%s%s", cls.downloadServer, escapedFilePath);
|
||||
|
||||
qcurl_easy_setopt(dl->curl, CURLOPT_ENCODING, "");
|
||||
qcurl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl);
|
||||
|
||||
if (dl->file)
|
||||
{
|
||||
qcurl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl);
|
||||
qcurl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, CL_HTTP_CurlWriteCB);
|
||||
}
|
||||
else
|
||||
{
|
||||
qcurl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl);
|
||||
qcurl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, CL_HTTP_Recv);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue