Add discord RPC

This commit is contained in:
wheremyfoodat 2023-08-11 20:22:26 +03:00
parent 16e2768df0
commit f2b64e892b
5 changed files with 68 additions and 1 deletions

View file

@ -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;
}