mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Add Discord Rich Presence support
This commit is contained in:
@ -79,6 +79,7 @@
|
||||
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
|
||||
#include "UICommon/DiscordPresence.h"
|
||||
#include "UICommon/UICommon.h"
|
||||
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
@ -569,6 +570,7 @@ void MainWindow::OnStopComplete()
|
||||
m_stop_requested = false;
|
||||
HideRenderWidget();
|
||||
EnableScreenSaver(true);
|
||||
Discord::UpdateDiscordPresence();
|
||||
|
||||
SetFullScreenResolution(false);
|
||||
|
||||
@ -719,6 +721,7 @@ void MainWindow::StartGame(std::unique_ptr<BootParameters>&& parameters)
|
||||
return;
|
||||
}
|
||||
ShowRenderWidget();
|
||||
Discord::UpdateDiscordPresence();
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
// Prevents Windows from sleeping, turning off the display, or idling
|
||||
|
Reference in New Issue
Block a user