This commit is contained in:
Chris Marsh 2017-07-19 14:40:54 -07:00
parent 0d6282fe33
commit c6c0aefa4f
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ static void handleDiscordDisconnected(int errcode, const char* message) {
printf("\nDiscord: disconnected (%d: %s)\n", errcode, message);
}
static void handleDiscordWantsPresence() {
static void handleDiscordPresenceRequested() {
printf("\nDiscord: requests presence\n");
updateDiscordPresence();
}
@ -83,7 +83,7 @@ int main() {
memset(&handlers, 0, sizeof(handlers));
handlers.ready = handleDiscordReady;
handlers.disconnected = handleDiscordDisconnected;
handlers.wantsPresence = handleDiscordWantsPresence;
handlers.presenceRequested = handleDiscordPresenceRequested;
Discord_Initialize(APPLICATION_ID, &handlers);
gameLoop();

View File

@ -28,7 +28,7 @@ typedef struct {
typedef struct {
void (*ready)();
void (*disconnected)(int errorCode, const char* message);
void (*wantsPresence)();
void (*presenceRequested)();
void (*joinGame)(const char* joinSecret);
void (*spectateGame)(const char* spectateSecret);
} DiscordEventHandlers;