summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/FrameTools.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/DolphinWX/FrameTools.cpp
parentf568e41fac4832b427b0ce290e65a485a790db40 (diff)
Add Discord Rich Presence support
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
-rw-r--r--Source/Core/DolphinWX/FrameTools.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp
index ea6f504e7c..63dcdc16c5 100644
--- a/Source/Core/DolphinWX/FrameTools.cpp
+++ b/Source/Core/DolphinWX/FrameTools.cpp
@@ -91,6 +91,7 @@
#include "InputCommon/ControllerInterface/ControllerInterface.h"
+#include "UICommon/DiscordPresence.h"
#include "UICommon/GameFile.h"
#include "UICommon/UICommon.h"
@@ -744,6 +745,7 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot)
else
{
EnableScreenSaver(false);
+ Discord::UpdateDiscordPresence();
// We need this specifically to support setting the focus properly when using
// the 'render to main window' feature on Windows
@@ -930,6 +932,7 @@ void CFrame::OnStopped()
wxPostEvent(GetMenuBar(), wxCommandEvent{DOLPHIN_EVT_UPDATE_LOAD_WII_MENU_ITEM});
EnableScreenSaver(true);
+ Discord::UpdateDiscordPresence();
m_render_frame->SetTitle(StrToWxStr(Common::scm_rev_str));