Change function signature of discord_update

This commit is contained in:
twinaphex 2018-05-29 11:09:13 +02:00
parent 1fb57857ea
commit 406342479a
2 changed files with 9 additions and 5 deletions

View File

@ -62,7 +62,7 @@ static void handle_discord_join_request(const DiscordUser* request)
request->userId);
}
void discord_update(unsigned presence)
void discord_update(enum discord_presence presence)
{
if (!discord_ready)
return;
@ -94,7 +94,10 @@ void discord_update(unsigned presence)
discord_presence.instance = 0;
discord_presence.startTimestamp = start_time;
break;
default:
case DISCORD_PRESENCE_NETPLAY_HOSTING:
case DISCORD_PRESENCE_NETPLAY_CLIENT:
case DISCORD_PRESENCE_CHEEVO_UNLOCKED:
/* TODO/FIXME */
break;
}
Discord_UpdatePresence(&discord_presence);

View File

@ -39,9 +39,10 @@ enum discord_presence
DISCORD_PRESENCE_NETPLAY_CLIENT
};
void discord_init(void);
void discord_init();
void discord_shutdown();
void discord_update(unsigned presence);
void discord_shutdown(void);
void discord_update(enum discord_presence presence);
#endif /* __RARCH_DISCORD_H */