mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Add an option to kick players from netplay.
This commit is contained in:
@ -583,6 +583,18 @@ void NetPlayServer::SendToClients(sf::Packet& packet, const PlayerId skip_pid)
|
||||
}
|
||||
}
|
||||
|
||||
void NetPlayServer::KickPlayer(u8 player)
|
||||
{
|
||||
for (auto& current_player : m_players)
|
||||
{
|
||||
if (current_player.second.pid == player)
|
||||
{
|
||||
current_player.second.socket.Close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_UPNP
|
||||
#include <miniwget.h>
|
||||
#include <miniupnpc.h>
|
||||
|
Reference in New Issue
Block a user