fixed launcher not connecting (0.90)

This commit is contained in:
Anonymous275 2020-05-01 20:36:06 +03:00
parent 0e44138f51
commit 5be1e93f37
3 changed files with 4 additions and 5 deletions

View File

@ -21,8 +21,8 @@ extern bool Terminate;
extern bool TCPTerminate;
extern bool MPDEV;
void StartSync(const std::string &Data){
//std::thread t1(SyncResources,Data.substr(1,Data.find(':')-1),std::stoi(Data.substr(Data.find(':')+1)));
std::thread t1(SyncResources,"127.0.0.1",30814);
std::thread t1(SyncResources,Data.substr(1,Data.find(':')-1),std::stoi(Data.substr(Data.find(':')+1)));
//std::thread t1(SyncResources,"127.0.0.1",30814);
t1.detach();
}

View File

@ -158,5 +158,5 @@ void SyncResources(const std::string&IP,int Port){
UlStatus = "Uldone";
std::cout << "Done!" << std::endl;
ProxyThread(IP,Port+1);
ProxyThread(IP,Port);
}

View File

@ -125,7 +125,7 @@ int main(int argc, char* argv[])
std::cout << "Running on custom port : " << DEFAULT_PORT << std::endl;
}
}
std::string ver = "0.89", Path = CheckDir(argv[0],ver),HTTP_Result;
std::string ver = "0.90", Path = CheckDir(argv[0],ver),HTTP_Result;
CheckForUpdates(ver);
std::thread t1(Discord_Main);
@ -160,7 +160,6 @@ int main(int argc, char* argv[])
}
Download("https://beamng-mp.com/builds/client?did="+GlobalInfo.at(2),Path + R"(\mods\BeamMP.zip)");
if(!MPDEV){
std::thread Game(StartGame,ExeDir,Write(Path + "\\"));
Game.detach();