summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2018-06-25 00:06:27 +0200
committerGitHub <noreply@github.com>2018-06-25 00:06:27 +0200
commit2cfdf89898c4689884fbffb1c693ec24a7083f66 (patch)
treeea6424aa322c4df3c86efe8b62326c8e6ac28740 /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parent7388094e837dc2da9288769db689cd386c7f05bb (diff)
parent63f03455f32ab938806216e218342fe8921eaf27 (diff)
Merge pull request #6983 from yourWaifu/add-discord-rpc-support
Add Discord Rich Presence support
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index af27952ca0..23a502e8f6 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -28,6 +28,9 @@
#include "Core/State.h"
#include "UICommon/CommandLineParse.h"
+#ifdef USE_DISCORD_PRESENCE
+#include "UICommon/DiscordPresence.h"
+#endif
#include "UICommon/UICommon.h"
#include "VideoCommon/RenderBase.h"
@@ -440,6 +443,10 @@ int main(int argc, char* argv[])
return 1;
}
+#ifdef USE_DISCORD_PRESENCE
+ Discord::UpdateDiscordPresence();
+#endif
+
while (!Core::IsRunning() && s_running.IsSet())
{
Core::HostDispatchJobs();