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/DolphinWX/FrameTools.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/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 496a6e1065..f54952c405 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -93,6 +93,7 @@ #include "InputCommon/ControllerInterface/ControllerInterface.h" +#include "UICommon/DiscordPresence.h" #include "UICommon/GameFile.h" #include "UICommon/UICommon.h" @@ -821,6 +822,9 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot) else { EnableScreenSaver(false); +#ifdef USE_DISCORD_PRESENCE + Discord::UpdateDiscordPresence(); +#endif // We need this specifically to support setting the focus properly when using // the 'render to main window' feature on Windows @@ -1007,6 +1011,9 @@ void CFrame::OnStopped() wxPostEvent(GetMenuBar(), wxCommandEvent{DOLPHIN_EVT_UPDATE_LOAD_WII_MENU_ITEM}); EnableScreenSaver(true); +#ifdef USE_DISCORD_PRESENCE + Discord::UpdateDiscordPresence(); +#endif m_render_frame->SetTitle(StrToWxStr(Common::scm_rev_str)); |
