mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 01:59:52 -06:00
Adds a UI for accepting Discord join requests in Dolphin
also did these things fixed crash from joining user that isn't hosting via a direct connection current game stat can now pass to override the current game in config uses ip endpoint from dolphin.org
This commit is contained in:
@ -809,8 +809,15 @@ unsigned int NetPlayServer::OnData(sf::Packet& packet, Client& player)
|
||||
|
||||
void NetPlayServer::OnTraversalStateChanged()
|
||||
{
|
||||
if (m_dialog && m_traversal_client->GetState() == TraversalClient::Failure)
|
||||
if (!m_dialog)
|
||||
return;
|
||||
|
||||
const TraversalClient::State state = m_traversal_client->GetState();
|
||||
|
||||
if (state == TraversalClient::Failure)
|
||||
m_dialog->OnTraversalError(m_traversal_client->GetFailureReason());
|
||||
|
||||
m_dialog->OnTraversalStateChanged(state);
|
||||
}
|
||||
|
||||
// called from ---GUI--- thread
|
||||
|
Reference in New Issue
Block a user