summaryrefslogtreecommitdiff
path: root/Source/Core/Common/TraversalClient.cpp
diff options
context:
space:
mode:
authorAestek <thib.gilles@gmail.com>2016-02-02 16:35:27 +0100
committerAestek <thib.gilles@gmail.com>2016-07-23 20:58:51 +0200
commit6a0fc4c438dcc827b6ed4e0a22a2e54676682ea0 (patch)
treeb44ade2f80ade233a2e82965af0717b18257e4f6 /Source/Core/Common/TraversalClient.cpp
parentaa34e5e20e5f66cfdbace167b98c30c1fedcf522 (diff)
Improve netplay setup dialog UX
* Focus "Hash Code" / "IP address" text box by default in "Connect" * Focus game list in "Host" tab * RETURN keypress now host/join depending on selected tab * Remember last hosted game * Remove PanicAlertT: * Simply log message to netplay window * Remove them when they are useless * Show some netplay message in OSD * Chat messages * Pad buffer changes * Desync alerts * Stop the game consistently when another player disconnects / crashes * Prettify chat textbox * Log netplay ping to OSD Join scenario: * Copy netplay code * Open netplay * Paste code * Press enter Host scenario: * Open netplay * Go to host tab * Press enter
Diffstat (limited to 'Source/Core/Common/TraversalClient.cpp')
-rw-r--r--Source/Core/Common/TraversalClient.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/Core/Common/TraversalClient.cpp b/Source/Core/Common/TraversalClient.cpp
index 81d592d4c3..67b4676769 100644
--- a/Source/Core/Common/TraversalClient.cpp
+++ b/Source/Core/Common/TraversalClient.cpp
@@ -208,25 +208,6 @@ void TraversalClient::OnFailure(FailureReason reason)
m_State = Failure;
m_FailureReason = reason;
- switch (reason)
- {
- case TraversalClient::BadHost:
- PanicAlertT("Couldn't look up central server %s", m_Server.c_str());
- break;
- case TraversalClient::VersionTooOld:
- PanicAlertT("Dolphin too old for traversal server");
- break;
- case TraversalClient::ServerForgotAboutUs:
- PanicAlertT("Disconnected from traversal server");
- break;
- case TraversalClient::SocketSendError:
- PanicAlertT("Socket error sending to traversal server");
- break;
- case TraversalClient::ResendTimeout:
- PanicAlertT("Timeout connecting to traversal server");
- break;
- }
-
if (m_Client)
m_Client->OnTraversalStateChanged();
}