diff --git a/CoreNetwork.cpp b/CoreNetwork.cpp index 90b6e12..1d211a1 100644 --- a/CoreNetwork.cpp +++ b/CoreNetwork.cpp @@ -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(); } diff --git a/Resources.cpp b/Resources.cpp index 0a06a7b..66282b2 100644 --- a/Resources.cpp +++ b/Resources.cpp @@ -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); } \ No newline at end of file diff --git a/main.cpp b/main.cpp index 72cf014..69e7e6d 100644 --- a/main.cpp +++ b/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();