Merge pull request #6983 from yourWaifu/add-discord-rpc-support
Add Discord Rich Presence support
This commit is contained in:
84 files changed
+18060
-4
No files matched your search
@@ -29,6 +29,7 @@ add_library(core
|
||||
Config/MainSettings.cpp
|
||||
Config/NetplaySettings.cpp
|
||||
Config/SYSCONFSettings.cpp
|
||||
Config/UISettings.cpp
|
||||
ConfigLoaders/BaseConfigLoader.cpp
|
||||
ConfigLoaders/GameConfigLoader.cpp
|
||||
ConfigLoaders/IsSettingSaveable.cpp
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// Copyright 2018 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included
|
||||
|
||||
#include "Core/Config/UISettings.h"
|
||||
|
||||
namespace Config
|
||||
{
|
||||
// UI.General
|
||||
|
||||
const ConfigInfo<bool> MAIN_USE_DISCORD_PRESENCE{{System::Main, "General", "UseDiscordPresence"},
|
||||
true};
|
||||
|
||||
} // namespace Config
|
||||
@@ -0,0 +1,21 @@
|
||||
// Copyright 2018 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Common/Config/Config.h"
|
||||
|
||||
// This is a temporary soluation, although they should be in their repected cpp file in UICommon.
|
||||
// However, in order for IsSettingSaveable to commpile without some issues, this needs to be here.
|
||||
// Once IsSettingSaveable is removed, then you should able to move these back to UICommon.
|
||||
|
||||
namespace Config
|
||||
{
|
||||
// Configuration Information
|
||||
|
||||
// UI.General
|
||||
|
||||
extern const ConfigInfo<bool> MAIN_USE_DISCORD_PRESENCE;
|
||||
|
||||
} // namespace Config
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "Common/Config/Config.h"
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "Core/Config/UISettings.h"
|
||||
|
||||
namespace ConfigLoaders
|
||||
{
|
||||
@@ -118,6 +119,10 @@ bool IsSettingSaveable(const Config::ConfigLocation& config_location)
|
||||
|
||||
Config::GFX_PERF_QUERIES_ENABLE.location,
|
||||
|
||||
// UI.General
|
||||
|
||||
Config::MAIN_USE_DISCORD_PRESENCE.location,
|
||||
|
||||
};
|
||||
|
||||
return std::find(s_setting_saveable.begin(), s_setting_saveable.end(), config_location) !=
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
<ClCompile Include="Config\GraphicsSettings.cpp" />
|
||||
<ClCompile Include="Config\MainSettings.cpp" />
|
||||
<ClCompile Include="Config\NetplaySettings.cpp" />
|
||||
<ClCompile Include="Config\UISettings.cpp" />
|
||||
<ClCompile Include="Config\SYSCONFSettings.cpp" />
|
||||
<ClCompile Include="ConfigLoaders\BaseConfigLoader.cpp" />
|
||||
<ClCompile Include="ConfigLoaders\GameConfigLoader.cpp" />
|
||||
@@ -319,6 +320,7 @@
|
||||
<ClInclude Include="ConfigLoaders\MovieConfigLoader.h" />
|
||||
<ClInclude Include="ConfigLoaders\NetPlayConfigLoader.h" />
|
||||
<ClInclude Include="ConfigManager.h" />
|
||||
<ClInclude Include="Config\UISettings.h" />
|
||||
<ClInclude Include="Core.h" />
|
||||
<ClInclude Include="CoreTiming.h" />
|
||||
<ClInclude Include="Debugger\Debugger_SymbolMap.h" />
|
||||
|
||||
@@ -907,6 +907,9 @@
|
||||
<ClCompile Include="IOS\Network\NCD\WiiNetConfig.cpp">
|
||||
<Filter>IOS\Network\NCD</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Config\UISettings.cpp">
|
||||
<Filter>Config</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="BootManager.h" />
|
||||
@@ -1598,6 +1601,9 @@
|
||||
<ClInclude Include="HW\WiimoteCommon\WiimoteReport.h">
|
||||
<Filter>HW %28Flipper/Hollywood%29\WiimoteCommon</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Config\UISettings.h">
|
||||
<Filter>Config</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="CMakeLists.txt" />
|
||||
|
||||
Reference in new issue
Block a user