NetPlay: Sync power button event
This fixes the deadlock on shutdown when Wii Remotes are in use.
This commit is contained in:
1 parent
97e3200f57
commit
ef89e4e70c
7 files changed
+44
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user