mirror of
https://github.com/libretro/RetroArch
synced 2025-01-06 10:11:54 +00:00
23 lines
382 B
C
23 lines
382 B
C
|
#include "presence.h"
|
||
|
|
||
|
#ifdef HAVE_DISCORD
|
||
|
#include "discord.h"
|
||
|
#endif
|
||
|
|
||
|
#ifdef HAVE_MIST
|
||
|
#include "steam/steam.h"
|
||
|
#endif
|
||
|
|
||
|
void presence_update(enum presence presence)
|
||
|
{
|
||
|
#ifdef HAVE_DISCORD
|
||
|
discord_state_t *discord_st = discord_state_get_ptr();
|
||
|
|
||
|
if (discord_st->ready)
|
||
|
discord_update(presence);
|
||
|
#endif
|
||
|
#ifdef HAVE_MIST
|
||
|
steam_update_presence(presence, false);
|
||
|
#endif
|
||
|
}
|