Add abstract frontend to HTTP support and stop using curl on Windows

This commit is contained in:
Tim Angus committed 2025-07-22 14:57:01 +01:00
1 parent bc30e0186b
commit 1cbba07fc3
12 files changed
+187 -299

No files matched your search

+7 -10
View File
@@ -30,9 +30,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../cgame/cg_public.h"
#include "../game/bg_public.h"
#ifdef USE_CURL
#include "cl_curl.h"
#endif /* USE_CURL */
#ifdef USE_HTTP
#include "cl_http.h"
#endif /* USE_HTTP */
#ifdef USE_VOIP
#include <opus.h>
@@ -198,14 +198,11 @@ typedef struct {
fileHandle_t download;
char downloadTempName[MAX_OSPATH];
char downloadName[MAX_OSPATH];
#ifdef USE_CURL
qboolean cURLEnabled;
qboolean cURLUsed;
qboolean cURLDisconnected;
#ifdef USE_HTTP
qboolean httpUsed;
qboolean disconnectedForHttpDownload;
char downloadURL[MAX_OSPATH];
CURL *downloadCURL;
CURLM *downloadCURLM;
#endif /* USE_CURL */
#endif /* USE_HTTP */
int sv_allowDownload;
char sv_dlURL[MAX_CVAR_VALUE_STRING];
int downloadNumber;