NetPlay: Sync power button event

This fixes the deadlock on shutdown when Wii Remotes are in use.
This commit is contained in:
Techjar
2018-11-10 22:37:49 -05:00
parent 97e3200f57
commit ef89e4e70c
7 changed files with 44 additions and 0 deletions

View File

@ -743,6 +743,14 @@ unsigned int NetPlayServer::OnData(sf::Packet& packet, Client& player)
}
break;
case NP_MSG_POWER_BUTTON:
{
sf::Packet spac;
spac << static_cast<MessageId>(NP_MSG_POWER_BUTTON);
SendToClients(spac, player.pid);
}
break;
case NP_MSG_TIMEBASE:
{
u64 timebase = Common::PacketReadU64(packet);