summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorSleepy Flower Girl <wuhao64@gmail.com>2018-05-27 00:24:13 -0400
committerSleepy Flower Girl <wuhao64@gmail.com>2018-06-03 15:27:20 -0400
commitd5303ddf0ba893d31f7e464aab3e36bc179e200e (patch)
treec5824203b5e1de1a5f5682a2c231803ecbbf8b3f /Source/Core/DolphinQt2/MainWindow.cpp
parentf568e41fac4832b427b0ce290e65a485a790db40 (diff)
Add Discord Rich Presence support
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt2/MainWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp
index 524ec9114b..edd4bb199a 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -79,6 +79,7 @@
#include "InputCommon/ControllerInterface/ControllerInterface.h"
+#include "UICommon/DiscordPresence.h"
#include "UICommon/UICommon.h"
#if defined(HAVE_XRANDR) && HAVE_XRANDR
@@ -569,6 +570,7 @@ void MainWindow::OnStopComplete()
m_stop_requested = false;
HideRenderWidget();
EnableScreenSaver(true);
+ Discord::UpdateDiscordPresence();
SetFullScreenResolution(false);
@@ -719,6 +721,7 @@ void MainWindow::StartGame(std::unique_ptr<BootParameters>&& parameters)
return;
}
ShowRenderWidget();
+ Discord::UpdateDiscordPresence();
#ifdef Q_OS_WIN
// Prevents Windows from sleeping, turning off the display, or idling