From 7ddfe713d5b1fba258ded4f4f731a0c6bc5d4637 Mon Sep 17 00:00:00 2001 From: CastellaFactory Date: Sun, 20 Sep 2015 20:10:54 +0900 Subject: [PATCH] [Netplay] Show error dialog if failed to connect to netplay server when Traversal and Force Listen Port is enabled --- Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp b/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp index 6bc55550aa..ae0375bd71 100644 --- a/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp +++ b/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp @@ -360,7 +360,11 @@ void NetPlaySetupFrame::OnHost(wxCommandEvent&) } else { - WxUtils::ShowErrorDialog(_("Failed to listen. Is another instance of the NetPlay server running?")); + if (trav && m_traversal_listen_port_enabled->IsChecked()) + WxUtils::ShowErrorDialog( + _("Failed to listen. Someone is probably already listening on the port you specified.")); + else + WxUtils::ShowErrorDialog(_("Failed to listen. Is another instance of the NetPlay server running?")); } }