NetPlay: Sync power button event

This fixes the deadlock on shutdown when Wii Remotes are in use.
This commit is contained in:
Techjar committed 2018-11-12 22:32:18 -05:00
1 parent 97e3200f57
commit ef89e4e70c
7 files changed
+44

No files matched your search

+8
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);