diff options
| author | oldmud0 <3421260-oldmud0@users.noreply.gitlab.com> | 2019-07-20 16:57:27 +0000 |
|---|---|---|
| committer | oldmud0 <3421260-oldmud0@users.noreply.gitlab.com> | 2019-07-20 16:57:27 +0000 |
| commit | e0c49ceb0720fabc777e178e1c8ce76ec7ef42e9 (patch) | |
| tree | e78e7ec82f105e98a7e3f1dab2a5c907e249f877 /src/discord_rich_presence.cpp | |
| parent | e5c2898bac03c478b468afd765ecbf3ceaa19a46 (diff) | |
| parent | 4a2a167f7d552141a2e3450d350b57d2f7b342a0 (diff) | |
Merge branch 'bass-optional' into 'master'
Bass+discord optional
See merge request AttorneyOnline/AO2-Client!59
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 ac14bb21..95a824a1 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 } |
