Sam39 392de2b724 fix auto detect on first launch
current bug: updating launcher
2022-08-19 12:18:24 +03:00

18 lines
599 B
C++

///
/// Created by Anonymous275 on 1/17/22
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info.
///
#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, DownloadProgress DP = ProgressBar);
static std::string Post(const std::string& IP, const std::string& Fields);
static std::string Get(const std::string& IP, DownloadProgress DP = ProgressBar);
static bool ProgressBar(size_t c, size_t t);
public:
static bool isDownload;
};