Add Rich Presence option

This commit is contained in:
isJuhn 2018-04-22 01:45:30 +02:00 committed by Ani
parent 98b715d8c8
commit f27f7d50c9
6 changed files with 42 additions and 14 deletions

View file

@ -94,8 +94,12 @@ void rpcs3_app::Init()
welcome->exec();
}
#ifdef WITH_DISCORD_RPC
DiscordEventHandlers handlers = {};
Discord_Initialize("424004941485572097", &handlers, 1, NULL);
// Discord Rich Presence Integration
if (guiSettings->GetValue(gui::m_richPresence).toBool())
{
DiscordEventHandlers handlers = {};
Discord_Initialize("424004941485572097", &handlers, 1, NULL);
}
#endif
}