diff options
| author | yourWaifu <wuhao64@gmail.com> | 2018-06-08 15:56:11 -0500 |
|---|---|---|
| committer | Sleepy Flower Girl <wuhao64@gmail.com> | 2018-06-19 22:43:03 -0400 |
| commit | 63f03455f32ab938806216e218342fe8921eaf27 (patch) | |
| tree | 575900069ab452f06b27b1f92877a0b15f717db1 /Source/Core/DolphinNoGUI/MainNoGUI.cpp | |
| parent | 57bd13a0ced5694cbeae24413bb5d9fe421a817a (diff) | |
Discord Rich Presence CMake integration
I have no idea if this works or not. Hopefully the build bot will tell me.
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
| -rw-r--r-- | Source/Core/DolphinNoGUI/MainNoGUI.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |
