diff options
| author | stonedDiscord <stoned@derpymail.org> | 2019-03-12 19:30:03 +0100 |
|---|---|---|
| committer | stonedDiscord <stoned@derpymail.org> | 2019-03-12 19:30:03 +0100 |
| commit | 6e93d6e1bea8fd539499625f2a980acd83ef424e (patch) | |
| tree | 3dfa73e368a4f5798254e26dbdfbc6e3b75bd9d5 /src/discord_rich_presence.cpp | |
| parent | 3fb6b50d104b5ed247ffe7a0ac03d0a7049d522a (diff) | |
discord optional v2
Diffstat (limited to 'src/discord_rich_presence.cpp')
| -rw-r--r-- | src/discord_rich_presence.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/discord_rich_presence.cpp b/src/discord_rich_presence.cpp index 10f5833e..a310a684 100644 --- a/src/discord_rich_presence.cpp +++ b/src/discord_rich_presence.cpp @@ -2,6 +2,7 @@ namespace AttorneyOnline { +#ifdef DISCORD Discord::Discord() { DiscordEventHandlers handlers; @@ -99,5 +100,36 @@ void Discord::state_spectate() presence.state = "Spectating"; Discord_UpdatePresence(&presence); } +#else +Discord::Discord() +{ + +} + +Discord::~Discord() +{ + +} + +void Discord::state_lobby() +{ + +} +void Discord::state_server(std::string name, std::string server_id) +{ + qDebug() << "Discord RPC: Setting server state"; +} + +void Discord::state_character(std::string name) +{ + qDebug() << "Discord RPC: Setting character state"; +} + +void Discord::state_spectate() +{ + qDebug() << "Discord RPC: Setting specator state"; + +} +#endif } |
