mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-20 12:00:35 -04:00
NetPlay: Sync power button event
This fixes the deadlock on shutdown when Wii Remotes are in use.
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
|
||||
#include "UICommon/DiscordPresence.h"
|
||||
#include "UICommon/GameFile.h"
|
||||
#include "UICommon/UICommon.h"
|
||||
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
@@ -796,6 +797,13 @@ void NetPlayDialog::OnMsgStopGame()
|
||||
QueueOnObject(this, [this] { UpdateDiscordPresence(); });
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnMsgPowerButton()
|
||||
{
|
||||
if (!Core::IsRunning())
|
||||
return;
|
||||
QueueOnObject(this, [] { UICommon::TriggerSTMPowerEvent(); });
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnPadBufferChanged(u32 buffer)
|
||||
{
|
||||
QueueOnObject(this, [this, buffer] {
|
||||
|
||||
Reference in New Issue
Block a user