From 63f03455f32ab938806216e218342fe8921eaf27 Mon Sep 17 00:00:00 2001 From: yourWaifu Date: Fri, 8 Jun 2018 15:56:11 -0500 Subject: Discord Rich Presence CMake integration I have no idea if this works or not. Hopefully the build bot will tell me. --- Source/Core/DolphinNoGUI/MainNoGUI.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp') diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp index 0d7a84137e..3c3beeee5e 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(); -- cgit v1.2.3