Check presence of name and region in NetPlayServer
This commit is contained in:
parent
2fa4ef729f
commit
8e278b8053
|
@ -169,8 +169,11 @@ static void ClearPeerPlayerId(ENetPeer* peer)
|
||||||
|
|
||||||
void NetPlayServer::SetupIndex()
|
void NetPlayServer::SetupIndex()
|
||||||
{
|
{
|
||||||
if (!Config::Get(Config::NETPLAY_USE_INDEX))
|
if (!Config::Get(Config::NETPLAY_USE_INDEX) || Config::Get(Config::NETPLAY_INDEX_NAME).empty() ||
|
||||||
|
Config::Get(Config::NETPLAY_INDEX_REGION).empty())
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
NetPlaySession session;
|
NetPlaySession session;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue