From 8f19dd8b12b814dfa5c49cd74094d60a4208f422 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Jul 2019 11:13:01 +0200 Subject: [PATCH] (Discord/runloop) Cleanup --- retroarch.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/retroarch.c b/retroarch.c index 775c9f5fd4..730d8e95d3 100644 --- a/retroarch.c +++ b/retroarch.c @@ -20319,13 +20319,8 @@ int runloop_iterate(unsigned *sleep_ms) cheat_manager_apply_retro_cheats(); #ifdef HAVE_DISCORD - if (discord_is_inited) - { - discord_userdata_t userdata; - userdata.status = DISCORD_PRESENCE_GAME; - - command_event(CMD_EVENT_DISCORD_UPDATE, &userdata); - } + if (discord_is_inited && discord_is_ready()) + discord_update(DISCORD_PRESENCE_GAME); #endif for (i = 0; i < max_users; i++)