mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Check presence of name and region in NetPlayServer
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user