Replace cURL with WinHttp implementation on Windows

This reduces the number of third party dependencies for Windows builds. WinHttp is quite a nice straight forward API so doesn't involve too much extra code.
This commit is contained in:
Ted John committed 2020-02-08 17:47:03 +00:00
1 parent d16fbb0cd2
commit be9cb19df5
11 files changed
+304 -130

No files matched your search

+1 -4
View File
@@ -11,10 +11,10 @@
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
#include <openrct2/core/Http.h>
#include <openrct2/core/Json.hpp>
#include <openrct2/core/String.hpp>
#include <openrct2/localisation/Localisation.h>
#include <openrct2/network/Http.h>
#include <openrct2/object/ObjectList.h>
#include <openrct2/object/ObjectManager.h>
#include <openrct2/object/ObjectRepository.h>
@@ -151,7 +151,6 @@ private:
void DownloadObject(const rct_object_entry& entry, const std::string name, const std::string url)
{
using namespace OpenRCT2::Networking;
try
{
std::printf("Downloading %s\n", url.c_str());
@@ -190,8 +189,6 @@ private:
void NextDownload()
{
using namespace OpenRCT2::Networking;
if (!_downloadingObjects || _currentDownloadIndex >= _entries.size())
{
// Finished...