mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-12-22 23:25:33 +00:00
Rename
This commit is contained in:
parent
0d6282fe33
commit
c6c0aefa4f
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue