mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-29 21:32:52 +00:00
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…
x
Reference in New Issue
Block a user