mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-03 08:26:01 +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)");
|
Download(link,Path + R"(\mods\BeamMP.zip)");
|
||||||
std::cout << "Download Complete!" << std::endl;
|
std::cout << "Download Complete!" << std::endl;
|
||||||
link.clear();
|
link.clear();
|
||||||
|
std::thread Game(StartGame,ExeDir,(Path + "\\"));
|
||||||
|
Game.detach();
|
||||||
if(!MPDEV){
|
if(!MPDEV){
|
||||||
std::thread Game(StartGame,ExeDir,(Path + "\\"));
|
std::thread Game(StartGame,ExeDir,(Path + "\\"));
|
||||||
Game.detach();
|
Game.detach();
|
||||||
|
@ -56,7 +56,7 @@ void RUDPSEND(const std::string&Data,bool Rel){
|
|||||||
<< " : "
|
<< " : "
|
||||||
<< Data.substr(0, 10)
|
<< Data.substr(0, 10)
|
||||||
<< Data.substr(Data.length() - 10) << std::endl;
|
<< Data.substr(Data.length() - 10) << std::endl;
|
||||||
}else if(MPDEV && Data.length() < 100){
|
}else if(MPDEV){
|
||||||
std::cout << "(Game->Launcher) : " << Data << std::endl;
|
std::cout << "(Game->Launcher) : " << Data << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -139,11 +139,11 @@ void RUDPClientThread(const std::string& IP, int Port){
|
|||||||
TCPTerminate = true;
|
TCPTerminate = true;
|
||||||
Terminate = true;
|
Terminate = true;
|
||||||
}
|
}
|
||||||
ServerPeer = client.peer;
|
|
||||||
std::thread Ping(AutoPing,client.peer);
|
std::thread Ping(AutoPing,client.peer);
|
||||||
Ping.detach();
|
Ping.detach();
|
||||||
ENetEvent event;
|
ENetEvent event;
|
||||||
while (!Terminate) {
|
while (!Terminate) {
|
||||||
|
ServerPeer = client.peer;
|
||||||
enet_host_service(client.host, &event, 1);
|
enet_host_service(client.host, &event, 1);
|
||||||
HandleEvent(event,client);
|
HandleEvent(event,client);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user