mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-04 16:16:20 +00:00
Add discord RPC
This commit is contained in:
parent
16e2768df0
commit
f2b64e892b
5 changed files with 68 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "Core/PS4/HLE/Libs.h"
|
||||
#include "Lib/Threads.h"
|
||||
#include <emulator.h>
|
||||
#include "discord.h"
|
||||
|
||||
// Main code
|
||||
int main(int argc, char* argv[])
|
||||
|
@ -59,6 +60,10 @@ int main(int argc, char* argv[])
|
|||
Emulator::emuRun();
|
||||
mainthread.JoinThread();
|
||||
|
||||
Discord::RPC discordRPC;
|
||||
discordRPC.init();
|
||||
discordRPC.update(Discord::RPCStatus::Idling, "");
|
||||
|
||||
#if 0
|
||||
// Setup SDL
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMEPAD) != 0)
|
||||
|
@ -240,5 +245,6 @@ int main(int argc, char* argv[])
|
|||
SDL_Quit();
|
||||
#endif
|
||||
|
||||
discordRPC.stop();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue