tweaked connection logic | launcher now retries to auto update

This commit is contained in:
Anonymous275
2020-07-03 00:58:46 +03:00
parent c8bddb0d3e
commit 1711662241
3 changed files with 19 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ std::vector<std::string> GetDiscordInfo();
extern std::vector<std::string> SData;
std::vector<std::string> GlobalInfo;
std::string getHardwareID();
char* ver = (char*)"1.45";
char* ver = (char*)"1.46";
int DEFAULT_PORT = 4444;
void Discord_Main();
bool Dev = false;
@@ -136,6 +136,7 @@ int main(int argc, char* argv[]){
link = "https://beamng-mp.com/client-ui-data";
std::cout << "Downloading default config..." << std::endl;
if(int i = Download(link,DUI) != -1){
remove(DUI.c_str());
std::cout << "Error! Failed to download code : " << i << std::endl;
std::this_thread::sleep_for(std::chrono::seconds(3));
ReLaunch(argc,argv);