Cheevos: Update rich presence in test mode (but don't ping)

This commit is contained in:
Connor McLaughlin 2021-06-20 13:40:10 +10:00
parent a072455903
commit 8f5b2f24cf
1 changed files with 1 additions and 2 deletions

View File

@ -304,11 +304,10 @@ void Update()
if (HasActiveGame())
{
rc_runtime_do_frame(&s_rcheevos_runtime, &CheevosEventHandler, &CheevosPeek, nullptr, nullptr);
UpdateRichPresence();
if (!s_test_mode)
{
UpdateRichPresence();
const s32 ping_frequency =
s_rich_presence_enabled ? RICH_PRESENCE_PING_FREQUENCY : NO_RICH_PRESENCE_PING_FREQUENCY;
if (static_cast<s32>(s_last_ping_time.GetTimeSeconds()) >= ping_frequency)