aboutsummaryrefslogtreecommitdiff
path: root/discord_rich_presence.h
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2018-01-08 00:40:50 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2018-01-08 00:40:50 -0600
commit3797a1e9efa9423c5512004c18860c283a54301b (patch)
tree263ae9baf5f37ad064feeb4b1d2a64512e9a69eb /discord_rich_presence.h
parentea01016d8c7eb4b4a68dfc61a79a999f2d2a1868 (diff)
Add Discord rich presence
This would work, were it not for some freak stack corruption caused by GCC not liking the Discord RPC library...
Diffstat (limited to 'discord_rich_presence.h')
-rw-r--r--discord_rich_presence.h21
1 files changed, 21 insertions, 0 deletions
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 <discord-rpc.h>
+
+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