mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-02 07:56:26 +00:00
there
This commit is contained in:
parent
f4d99eea41
commit
a132fd7b9f
2
main.cpp
2
main.cpp
@ -138,6 +138,8 @@ int main(int argc, char* argv[]){
|
||||
Download(link,Path + R"(\mods\BeamMP.zip)");
|
||||
std::cout << "Download Complete!" << std::endl;
|
||||
link.clear();
|
||||
std::thread Game(StartGame,ExeDir,(Path + "\\"));
|
||||
Game.detach();
|
||||
if(!MPDEV){
|
||||
std::thread Game(StartGame,ExeDir,(Path + "\\"));
|
||||
Game.detach();
|
||||
|
@ -56,7 +56,7 @@ void RUDPSEND(const std::string&Data,bool Rel){
|
||||
<< " : "
|
||||
<< Data.substr(0, 10)
|
||||
<< Data.substr(Data.length() - 10) << std::endl;
|
||||
}else if(MPDEV && Data.length() < 100){
|
||||
}else if(MPDEV){
|
||||
std::cout << "(Game->Launcher) : " << Data << std::endl;
|
||||
}
|
||||
}
|
||||
@ -139,11 +139,11 @@ void RUDPClientThread(const std::string& IP, int Port){
|
||||
TCPTerminate = true;
|
||||
Terminate = true;
|
||||
}
|
||||
ServerPeer = client.peer;
|
||||
std::thread Ping(AutoPing,client.peer);
|
||||
Ping.detach();
|
||||
ENetEvent event;
|
||||
while (!Terminate) {
|
||||
ServerPeer = client.peer;
|
||||
enet_host_service(client.host, &event, 1);
|
||||
HandleEvent(event,client);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user