Added INI setting for Discord Rich Presence

This commit is contained in:
Sleepy Flower Girl
2018-05-29 23:44:20 -04:00
parent 678f8da95b
commit d9351a5b45
5 changed files with 27 additions and 0 deletions

View File

@ -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));