mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Discord Rich Presence Integration (Thanks to @Megamouse for fixing the windows build)
This commit is contained in:
parent
3d551482a9
commit
3b24e7e685
9 changed files with 295 additions and 133 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue