From 67392a37ecbe2f8c9268765a198393de30861375 Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 19 Sep 2020 15:00:03 +0200 Subject: [PATCH] Fix Discord RPC not reporting the game title --- src/frontend-common/common_host_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 6b70f4fab..eee65a9c1 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -2371,7 +2371,7 @@ void CommonHostInterface::UpdateDiscordPresence() rp.startTimestamp = std::time(nullptr); SmallString details_string; - if (System::IsValid()) + if (!System::IsShutdown()) { details_string.AppendFormattedString("%s (%s)", System::GetRunningTitle().c_str(), System::GetRunningCode().c_str());