mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
fix for CSocket not existing
This commit is contained in:
parent
acd5f4ed09
commit
e08a4de6db
@ -15,6 +15,8 @@ extern int ping;
|
||||
|
||||
extern bool ModWarningConfirmed;
|
||||
|
||||
extern int LSocket,CSocket;
|
||||
|
||||
[[noreturn]] void CoreNetwork();
|
||||
extern int ProxyPort;
|
||||
extern int ClientID;
|
||||
|
@ -218,10 +218,12 @@ void localRes(){
|
||||
}
|
||||
ConfList = new std::set<std::string>;
|
||||
}
|
||||
|
||||
SOCKET LSocket,CSocket;
|
||||
|
||||
void CoreMain() {
|
||||
debug("Core Network on start!");
|
||||
WSADATA wsaData;
|
||||
SOCKET LSocket,CSocket;
|
||||
struct addrinfo *res = nullptr;
|
||||
struct addrinfo hints{};
|
||||
int iRes = WSAStartup(514, &wsaData); //2.2
|
||||
|
@ -224,7 +224,7 @@ void SyncResources(SOCKET Sock){
|
||||
ModWarningConfirmed = false;
|
||||
|
||||
std::string Data = "WMODS_FOUND";
|
||||
send(CSocket, (Data + "\n").c_str(), int(Data.size())+1, 0)
|
||||
send(CSocket, (Data + "\n").c_str(), int(Data.size())+1, 0);
|
||||
|
||||
while (!Terminate && !ModWarningConfirmed) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
Loading…
x
Reference in New Issue
Block a user