From 7b380e0d5f3875b13799bebe7b8f201f1cc7e1dc Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Sat, 12 Aug 2023 01:02:42 +0300 Subject: [PATCH] better place to init discordRPC --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index db5a9043..7b6ce30d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -57,13 +57,15 @@ int main(int argc, char* argv[]) }, nullptr); mainthread.DetachThread(); - Emulator::emuRun(); - mainthread.JoinThread(); - Discord::RPC discordRPC; discordRPC.init(); discordRPC.update(Discord::RPCStatus::Idling, ""); + Emulator::emuRun(); + mainthread.JoinThread(); + + + #if 0 // Setup SDL if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMEPAD) != 0)