From fc37f3e93a932c47953feddcbaf717002e20e391 Mon Sep 17 00:00:00 2001 From: Prism Tutaj Date: Sun, 8 Sep 2019 16:02:04 -0500 Subject: [PATCH] [App] Fix discord cvar --- src/xenia/app/xenia_main.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xenia/app/xenia_main.cc b/src/xenia/app/xenia_main.cc index 1b6e1017b..f2c58ffdc 100644 --- a/src/xenia/app/xenia_main.cc +++ b/src/xenia/app/xenia_main.cc @@ -196,11 +196,6 @@ int xenia_main(const std::vector& args) { Profiler::Initialize(); Profiler::ThreadEnter("main"); - if (cvars::discord) { - discord::DiscordPresence::Initialize(); - discord::DiscordPresence::NotPlaying(); - } - // Figure out where content should go. std::wstring content_root = xe::to_wstring(cvars::content_root); std::wstring config_folder; @@ -232,6 +227,11 @@ int xenia_main(const std::vector& args) { XELOGI("Content root: %S", content_root.c_str()); config::SetupConfig(config_folder); + if (cvars::discord) { + discord::DiscordPresence::Initialize(); + discord::DiscordPresence::NotPlaying(); + } + // Create the emulator but don't initialize so we can setup the window. auto emulator = std::make_unique(L"", content_root);