From 3797a1e9efa9423c5512004c18860c283a54301b Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Mon, 8 Jan 2018 00:40:50 -0600 Subject: Add Discord rich presence This would work, were it not for some freak stack corruption caused by GCC not liking the Discord RPC library... --- discord_rich_presence.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 discord_rich_presence.h (limited to 'discord_rich_presence.h') diff --git a/discord_rich_presence.h b/discord_rich_presence.h new file mode 100644 index 00000000..087fe8df --- /dev/null +++ b/discord_rich_presence.h @@ -0,0 +1,21 @@ +#ifndef DISCORD_RICH_PRESENCE_H +#define DISCORD_RICH_PRESENCE_H + +#include + +namespace AttorneyOnline { + +class Discord +{ +private: + const char* APPLICATION_ID = "399779271737868288"; +public: + Discord(); + ~Discord(); + + void state_lobby(); + void state_server(const char* name, const char* server_id); +}; + +} +#endif // DISCORD_RICH_PRESENCE_H -- cgit