Cheevos: Update rich presence in test mode (but don't ping)
This commit is contained in:
parent
a072455903
commit
8f5b2f24cf
|
@ -304,11 +304,10 @@ void Update()
|
||||||
if (HasActiveGame())
|
if (HasActiveGame())
|
||||||
{
|
{
|
||||||
rc_runtime_do_frame(&s_rcheevos_runtime, &CheevosEventHandler, &CheevosPeek, nullptr, nullptr);
|
rc_runtime_do_frame(&s_rcheevos_runtime, &CheevosEventHandler, &CheevosPeek, nullptr, nullptr);
|
||||||
|
UpdateRichPresence();
|
||||||
|
|
||||||
if (!s_test_mode)
|
if (!s_test_mode)
|
||||||
{
|
{
|
||||||
UpdateRichPresence();
|
|
||||||
|
|
||||||
const s32 ping_frequency =
|
const s32 ping_frequency =
|
||||||
s_rich_presence_enabled ? RICH_PRESENCE_PING_FREQUENCY : NO_RICH_PRESENCE_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)
|
if (static_cast<s32>(s_last_ping_time.GetTimeSeconds()) >= ping_frequency)
|
||||||
|
|
Loading…
Reference in New Issue