mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
fixed launcher not connecting (0.90)
This commit is contained in:
parent
0e44138f51
commit
5be1e93f37
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
3
main.cpp
3
main.cpp
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user