diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-11-13 22:33:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-13 22:33:59 +0100 |
| commit | 41333fa971b4fc971b45f2629c50e72612df7283 (patch) | |
| tree | d765785750785b87ff1a51bf5677b33b9b99919a /Source/Core/DolphinQt/MainWindow.cpp | |
| parent | 3153b9e94f80ecdbb4259140096fdeb0a7e15753 (diff) | |
| parent | ef89e4e70c256989ede03d33145ee05be141dc06 (diff) | |
Merge pull request #7564 from Techjar/netplay-sync-wii-shutdown
NetPlay: Sync power button event
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index e2b9e15791..6899508c17 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -744,6 +744,10 @@ bool MainWindow::RequestStop() if (Core::GetState() == Core::State::Paused) Core::SetState(Core::State::Running); + // Tell NetPlay about the power event + if (NetPlay::IsNetPlayRunning()) + NetPlay::SendPowerButtonEvent(); + return true; } |
