diff --git a/src/Network/Http.cpp b/src/Network/Http.cpp index e77882a..4f9d9a2 100644 --- a/src/Network/Http.cpp +++ b/src/Network/Http.cpp @@ -64,7 +64,6 @@ int Download(const std::string& URL,const std::string& Path,bool close){ CURL *curl; CURLcode res; struct File file = {Path.c_str(),nullptr}; - //curl_global_init(CURL_GLOBAL_DEFAULT); curl = curl_easy_init(); if(curl){ curl_easy_setopt(curl, CURLOPT_URL,URL.c_str()); diff --git a/src/Startup.cpp b/src/Startup.cpp index 929c593..43b94c0 100644 --- a/src/Startup.cpp +++ b/src/Startup.cpp @@ -6,10 +6,10 @@ #include "Security/Init.h" #include "Security/Enc.h" #include "Curl/http.h" +#include "Curl/curl.h" #include #include #include "Logger.h" -#include #include bool Dev = false; @@ -178,6 +178,7 @@ void CustomPort(int argc, char* argv[]){ } void InitLauncher(int argc, char* argv[]) { system(Sec("cls")); + curl_global_init(CURL_GLOBAL_DEFAULT); SetConsoleTitleA((Sec("BeamMP Launcher v") + std::string(GetVer()) + GetPatch()).c_str()); InitLog(); CheckName(argc, argv);