mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
Only try and make a connection if we have enabled EmulateNet
This commit is contained in:
parent
1a3407bec8
commit
9a651bdb61
|
@ -1246,12 +1246,13 @@ bool CNetBoard::Init(UINT8 * netRAMPtr, UINT8 *netBufferPtr)
|
||||||
nets = std::make_unique<TCPSend>(addr_out, port_out);
|
nets = std::make_unique<TCPSend>(addr_out, port_out);
|
||||||
netr = std::make_unique<TCPReceive>(port_in);
|
netr = std::make_unique<TCPReceive>(port_in);
|
||||||
|
|
||||||
while (!nets->Connect()) {
|
if (m_config["EmulateNet"].ValueAs<bool>()) {
|
||||||
printf("Connecting to %s:%i ..\n", addr_out.c_str(), port_out);
|
while (!nets->Connect()) {
|
||||||
|
printf("Connecting to %s:%i ..\n", addr_out.c_str(), port_out);
|
||||||
|
}
|
||||||
|
printf("Successfully connected.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Successfully connected.\n");
|
|
||||||
|
|
||||||
return OKAY;
|
return OKAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue