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

@ -570,7 +570,9 @@ void MainWindow::OnStopComplete()
m_stop_requested = false;
HideRenderWidget();
EnableScreenSaver(true);
#ifdef USE_DISCORD_PRESENCE
Discord::UpdateDiscordPresence();
#endif
SetFullScreenResolution(false);
@ -721,7 +723,9 @@ void MainWindow::StartGame(std::unique_ptr<BootParameters>&& parameters)
return;
}
ShowRenderWidget();
#ifdef USE_DISCORD_PRESENCE
Discord::UpdateDiscordPresence();
#endif
#ifdef Q_OS_WIN
// Prevents Windows from sleeping, turning off the display, or idling