Merge pull request #866 from CookiePLMonster/discord-running-game

Fix Discord RPC not reporting the game title
This commit is contained in:
Connor McLaughlin 2020-09-20 01:35:53 +10:00 committed by GitHub
commit 3bdda39e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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());