From 8e278b80532d315fcd889405dd24fd1bb7d99e34 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Mon, 23 Dec 2019 22:55:19 +0100 Subject: [PATCH] Check presence of name and region in NetPlayServer --- Source/Core/Core/NetPlayServer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/NetPlayServer.cpp b/Source/Core/Core/NetPlayServer.cpp index 797436976d..4789ef8900 100644 --- a/Source/Core/Core/NetPlayServer.cpp +++ b/Source/Core/Core/NetPlayServer.cpp @@ -169,8 +169,11 @@ static void ClearPeerPlayerId(ENetPeer* peer) 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; + } NetPlaySession session;