fix auto detect on first launch

current bug: updating launcher
This commit is contained in:
Sam39
2022-08-19 12:18:24 +03:00
parent 1acaec1625
commit 392de2b724
6 changed files with 313 additions and 227 deletions

View File

@@ -5,12 +5,12 @@
#pragma once
#include <string>
typedef bool (*DownloadProgress) (size_t c, size_t t);
class HTTP {
public:
static bool Download(const std::string& IP, const std::string& Path);
static bool Download(const std::string& IP, const std::string& Path, DownloadProgress DP = ProgressBar);
static std::string Post(const std::string& IP, const std::string& Fields);
static std::string Get(const std::string& IP);
static std::string Get(const std::string& IP, DownloadProgress DP = ProgressBar);
static bool ProgressBar(size_t c, size_t t);
public: