Move some stuff, hook up connect/disconnect cbs
This commit is contained in:
1 parent
47c488ac6b
commit
6d7e279074
6 files changed
+13
-7
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
This is a simple example in C of using the rich presence API syncronously.
|
||||
This is a simple example in C of using the rich presence API asyncronously.
|
||||
*/
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS /* thanks Microsoft */
|
||||
@@ -25,15 +25,15 @@ static void updateDiscordPresence() {
|
||||
}
|
||||
|
||||
static void handleDiscordReady() {
|
||||
printf("Discord: ready\n");
|
||||
printf("\nDiscord: ready\n");
|
||||
}
|
||||
|
||||
static void handleDiscordDisconnected() {
|
||||
printf("Discord: disconnected\n");
|
||||
printf("\nDiscord: disconnected\n");
|
||||
}
|
||||
|
||||
static void handleDiscordWantsPresence() {
|
||||
printf("Discord: requests presence\n");
|
||||
printf("\nDiscord: requests presence\n");
|
||||
updateDiscordPresence();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user