mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-14 20:18:59 +00:00
Merge pull request #7249 from yourWaifu/discord-rpc-join
Add Discord Join Net Play functionally
This commit is contained in:
commit
0fdb6f4267
17 changed files with 574 additions and 6 deletions
|
@ -807,8 +807,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue