mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-18 22:50:59 +00:00
Http patch
This commit is contained in:
@@ -64,7 +64,6 @@ int Download(const std::string& URL,const std::string& Path,bool close){
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
struct File file = {Path.c_str(),nullptr};
|
struct File file = {Path.c_str(),nullptr};
|
||||||
//curl_global_init(CURL_GLOBAL_DEFAULT);
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl){
|
if(curl){
|
||||||
curl_easy_setopt(curl, CURLOPT_URL,URL.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL,URL.c_str());
|
||||||
|
|||||||
+2
-1
@@ -6,10 +6,10 @@
|
|||||||
#include "Security/Init.h"
|
#include "Security/Init.h"
|
||||||
#include "Security/Enc.h"
|
#include "Security/Enc.h"
|
||||||
#include "Curl/http.h"
|
#include "Curl/http.h"
|
||||||
|
#include "Curl/curl.h"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
#include <urlmon.h>
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
bool Dev = false;
|
bool Dev = false;
|
||||||
@@ -178,6 +178,7 @@ void CustomPort(int argc, char* argv[]){
|
|||||||
}
|
}
|
||||||
void InitLauncher(int argc, char* argv[]) {
|
void InitLauncher(int argc, char* argv[]) {
|
||||||
system(Sec("cls"));
|
system(Sec("cls"));
|
||||||
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
SetConsoleTitleA((Sec("BeamMP Launcher v") + std::string(GetVer()) + GetPatch()).c_str());
|
SetConsoleTitleA((Sec("BeamMP Launcher v") + std::string(GetVer()) + GetPatch()).c_str());
|
||||||
InitLog();
|
InitLog();
|
||||||
CheckName(argc, argv);
|
CheckName(argc, argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user