summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2019-05-24 14:30:52 +0200
committerGitHub <noreply@github.com>2019-05-24 14:30:52 +0200
commit6eb7c525b2e88a45811b7e016ea3b4fae23c47ad (patch)
tree317df8443464370000e9972adb9883d8da8aee4a /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parent702344ba9c9bcdae1d82a35e030908b406c90578 (diff)
parent8417c78b7a0015ae8252fe0841c9e98e38f5745c (diff)
Merge pull request #7801 from GerbilSoft/feature/Discord-PPCTitleChanged
Update Discord rich presence when the PPC title changes
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index e4096d8501..1b35ac8809 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -105,6 +105,13 @@ void Host_UpdateProgressDialog(const char* caption, int position, int total)
{
}
+void Host_TitleChanged()
+{
+#ifdef USE_DISCORD_PRESENCE
+ Discord::UpdateDiscordPresence();
+#endif
+}
+
static std::unique_ptr<Platform> GetPlatform(const optparse::Values& options)
{
std::string platform_name = static_cast<const char*>(options.get("platform"));