Rename
This commit is contained in:
parent
0d6282fe33
commit
c6c0aefa4f
2 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ static void handleDiscordDisconnected(int errcode, const char* message) {
|
||||||
printf("\nDiscord: disconnected (%d: %s)\n", errcode, message);
|
printf("\nDiscord: disconnected (%d: %s)\n", errcode, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handleDiscordWantsPresence() {
|
static void handleDiscordPresenceRequested() {
|
||||||
printf("\nDiscord: requests presence\n");
|
printf("\nDiscord: requests presence\n");
|
||||||
updateDiscordPresence();
|
updateDiscordPresence();
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ int main() {
|
||||||
memset(&handlers, 0, sizeof(handlers));
|
memset(&handlers, 0, sizeof(handlers));
|
||||||
handlers.ready = handleDiscordReady;
|
handlers.ready = handleDiscordReady;
|
||||||
handlers.disconnected = handleDiscordDisconnected;
|
handlers.disconnected = handleDiscordDisconnected;
|
||||||
handlers.wantsPresence = handleDiscordWantsPresence;
|
handlers.presenceRequested = handleDiscordPresenceRequested;
|
||||||
Discord_Initialize(APPLICATION_ID, &handlers);
|
Discord_Initialize(APPLICATION_ID, &handlers);
|
||||||
|
|
||||||
gameLoop();
|
gameLoop();
|
||||||
|
|
|
@ -28,7 +28,7 @@ typedef struct {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
void (*ready)();
|
void (*ready)();
|
||||||
void (*disconnected)(int errorCode, const char* message);
|
void (*disconnected)(int errorCode, const char* message);
|
||||||
void (*wantsPresence)();
|
void (*presenceRequested)();
|
||||||
void (*joinGame)(const char* joinSecret);
|
void (*joinGame)(const char* joinSecret);
|
||||||
void (*spectateGame)(const char* spectateSecret);
|
void (*spectateGame)(const char* spectateSecret);
|
||||||
} DiscordEventHandlers;
|
} DiscordEventHandlers;
|
||||||
|
|
Loading…
Reference in a new issue