diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-06-25 00:06:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-25 00:06:27 +0200 |
| commit | 2cfdf89898c4689884fbffb1c693ec24a7083f66 (patch) | |
| tree | ea6424aa322c4df3c86efe8b62326c8e6ac28740 /Source/Core/DolphinQt2/MainWindow.cpp | |
| parent | 7388094e837dc2da9288769db689cd386c7f05bb (diff) | |
| parent | 63f03455f32ab938806216e218342fe8921eaf27 (diff) | |
Merge pull request #6983 from yourWaifu/add-discord-rpc-support
Add Discord Rich Presence support
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index fabe0c0f34..762ef125f7 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -84,6 +84,7 @@ #include "InputCommon/ControllerInterface/ControllerInterface.h" +#include "UICommon/DiscordPresence.h" #include "UICommon/UICommon.h" #include "VideoCommon/VideoConfig.h" @@ -632,6 +633,9 @@ void MainWindow::OnStopComplete() m_stop_requested = false; HideRenderWidget(); EnableScreenSaver(true); +#ifdef USE_DISCORD_PRESENCE + Discord::UpdateDiscordPresence(); +#endif SetFullScreenResolution(false); @@ -783,6 +787,9 @@ void MainWindow::StartGame(std::unique_ptr<BootParameters>&& parameters) } ShowRenderWidget(); +#ifdef USE_DISCORD_PRESENCE + Discord::UpdateDiscordPresence(); +#endif if (SConfig::GetInstance().bFullscreen) m_fullscreen_requested = true; |
