Add Discord Rich Presence Support (#3883)

* Initial Discord RPC support

Build with Discord Presence ON

Fix RPC detection

Fix Time elapsed on pause; will now continue to count.

* Fix CI builds with compile flag

Addressed reviews

Fix silly mistakes

Fix 'Not in-game' display

class instead of namespace

Fix

Revamped

remove redundant code

Using Pimpl pattern

* Implement Null class

* Fix config updation

* Addressed All Reviews

* externals/discord-rpc : Updated to latest commit
This commit is contained in:
Vamsi Krishna 2018-08-20 14:50:33 +05:30 committed by Ben
parent 96c025e4c2
commit 6cb9a45154
19 changed files with 193 additions and 11 deletions

View file

@ -38,6 +38,9 @@ class QProgressBar;
class RegistersWidget;
class Updater;
class WaitTreeWidget;
namespace DiscordRPC {
class DiscordInterface;
}
class GMainWindow : public QMainWindow {
Q_OBJECT
@ -61,6 +64,7 @@ public:
~GMainWindow();
GameList* game_list;
std::unique_ptr<DiscordRPC::DiscordInterface> discord_rpc;
signals:
@ -108,6 +112,7 @@ private:
void ShowUpdatePrompt();
void ShowNoUpdatePrompt();
void CheckForUpdates();
void SetDiscordEnabled(bool state);
/**
* Stores the filename in the recently loaded files list.