From 52bdc2714d36801b05d93076f0b2e0c6231a2555 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Fri, 28 Jul 2017 13:43:43 -0700 Subject: [PATCH] More complete presence data to test with. --- examples/send-presence/send-presence.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/send-presence/send-presence.c b/examples/send-presence/send-presence.c index 20e211b..ceb6805 100644 --- a/examples/send-presence/send-presence.c +++ b/examples/send-presence/send-presence.c @@ -13,6 +13,7 @@ static const char* APPLICATION_ID = "338030514596216832"; static int FrustrationLevel = 0; +static int64_t StartTime; static void updateDiscordPresence() { @@ -22,6 +23,15 @@ static void updateDiscordPresence() discordPresence.state = "West of House"; sprintf(buffer, "Frustration level: %d", FrustrationLevel); discordPresence.details = buffer; + discordPresence.startTimestamp = StartTime; + discordPresence.endTimestamp = time(0) + 5 * 60; + discordPresence.partyId = "party1234"; + discordPresence.partySize = 1; + discordPresence.partyMax = 6; + discordPresence.matchSecret = "xyzzy"; + discordPresence.joinSecret = "join"; + discordPresence.spectateSecret = "look"; + discordPresence.instance = 0; Discord_UpdatePresence(&discordPresence); } @@ -60,6 +70,8 @@ static void gameLoop() char line[512]; char* space; + StartTime = time(0); + printf("You are standing in an open field west of a white house.\n"); while (prompt(line, sizeof(line))) { if (line[0]) {