diff options
| author | Sleepy Flower Girl <wuhao64@gmail.com> | 2018-05-29 23:44:20 -0400 |
|---|---|---|
| committer | Sleepy Flower Girl <wuhao64@gmail.com> | 2018-06-03 15:29:21 -0400 |
| commit | d9351a5b45c181eb6503391f9c3ba486a62de8e2 (patch) | |
| tree | 36bfa9dc54a15a1d9ff0c97e518237e9a88af3bd /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 678f8da95b47a7749afc7a9cb556d435a4be38df (diff) | |
Added INI setting for Discord Rich Presence
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 63dcdc16c5..de404a05c9 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -745,7 +745,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 @@ -932,7 +934,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)); |
