Discord Rich Presence Integration (Thanks to @Megamouse for fixing the windows build)

This commit is contained in:
Zion Nimchuk 2018-04-05 20:28:22 -07:00 committed by Ivan
parent 3d551482a9
commit 3b24e7e685
9 changed files with 295 additions and 133 deletions

View file

@ -4,6 +4,11 @@
#include "rpcs3qt/welcome_dialog.h"
#ifdef WITH_DISCORD_RPC
#include "discord_rpc.h"
#include "discord_register.h"
#endif
#include "Emu/System.h"
#include "rpcs3qt/gs_frame.h"
#include "rpcs3qt/gl_gs_frame.h"
@ -88,6 +93,10 @@ void rpcs3_app::Init()
welcome_dialog* welcome = new welcome_dialog();
welcome->exec();
}
#ifdef WITH_DISCORD_RPC
DiscordEventHandlers handlers = {};
Discord_Initialize("424004941485572097", &handlers, 1, NULL);
#endif
}
/** RPCS3 emulator has functions it desires to call from the GUI at times. Initialize them in here.