Fix discord cvar
This commit is contained in:
parent
1f5d6d4466
commit
4b89a060d4
|
@ -196,11 +196,6 @@ int xenia_main(const std::vector<std::wstring>& args) {
|
||||||
Profiler::Initialize();
|
Profiler::Initialize();
|
||||||
Profiler::ThreadEnter("main");
|
Profiler::ThreadEnter("main");
|
||||||
|
|
||||||
if (cvars::discord) {
|
|
||||||
discord::DiscordPresence::Initialize();
|
|
||||||
discord::DiscordPresence::NotPlaying();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Figure out where content should go.
|
// Figure out where content should go.
|
||||||
std::wstring content_root = xe::to_wstring(cvars::content_root);
|
std::wstring content_root = xe::to_wstring(cvars::content_root);
|
||||||
std::wstring config_folder;
|
std::wstring config_folder;
|
||||||
|
@ -232,6 +227,11 @@ int xenia_main(const std::vector<std::wstring>& args) {
|
||||||
XELOGI("Content root: %S", content_root.c_str());
|
XELOGI("Content root: %S", content_root.c_str());
|
||||||
config::SetupConfig(config_folder);
|
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.
|
// Create the emulator but don't initialize so we can setup the window.
|
||||||
auto emulator = std::make_unique<Emulator>(L"", content_root);
|
auto emulator = std::make_unique<Emulator>(L"", content_root);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue