discord optional v2

This commit is contained in:
stonedDiscord 2019-03-12 19:30:03 +01:00
parent 3fb6b50d10
commit 6e93d6e1be

View File

@ -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
}