fixed discord presence randomly dropping for no reason

This commit is contained in:
LazyByteDev
2026-03-04 11:34:15 -05:00
parent e36bcb6ef0
commit 8a71ed970a
4 changed files with 42 additions and 32 deletions

View File

@@ -483,7 +483,10 @@ void LocalPlayer::aiStep()
// Check if the player is idle and the rich presence needs updated
if( !m_bIsIdle && InputManager.GetIdleSeconds( m_iPad ) > PLAYER_IDLE_TIME )
{
ProfileManager.SetCurrentGameActivity(m_iPad,CONTEXT_PRESENCE_IDLE,false);
#ifdef _WINDOWS64
if (!g_NetworkManager.s_pPlatformNetworkManager->IsInSession())
#endif
ProfileManager.SetCurrentGameActivity(m_iPad, CONTEXT_PRESENCE_IDLE, false);
m_bIsIdle = true;
}
else if ( m_bIsIdle && InputManager.GetIdleSeconds( m_iPad ) < PLAYER_IDLE_TIME )