discord optional v2
This commit is contained in:
parent
3fb6b50d10
commit
6e93d6e1be
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user