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:
parent
96c025e4c2
commit
6cb9a45154
19 changed files with 193 additions and 11 deletions
|
@ -207,6 +207,8 @@ void Config::ReadValues() {
|
|||
|
||||
qt_config->beginGroup("UI");
|
||||
UISettings::values.theme = ReadSetting("theme", UISettings::themes[0].second).toString();
|
||||
UISettings::values.enable_discord_presence =
|
||||
ReadSetting("enable_discord_presence", true).toBool();
|
||||
|
||||
qt_config->beginGroup("Updater");
|
||||
UISettings::values.check_for_update_on_start =
|
||||
|
@ -440,6 +442,7 @@ void Config::SaveValues() {
|
|||
|
||||
qt_config->beginGroup("UI");
|
||||
WriteSetting("theme", UISettings::values.theme, UISettings::themes[0].second);
|
||||
WriteSetting("enable_discord_presence", UISettings::values.enable_discord_presence, true);
|
||||
|
||||
qt_config->beginGroup("Updater");
|
||||
WriteSetting("check_for_update_on_start", UISettings::values.check_for_update_on_start, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue