[App] ensure InitFeatureFlags is called after cvar parsing
Fixes x64_exension_mask being applied
This commit is contained in:
committed by
Radosław Gliński
parent
a1a33b9939
commit
f4b471d000
@@ -444,9 +444,6 @@ std::vector<std::unique_ptr<hid::InputDriver>> EmulatorApp::CreateInputDrivers(
|
||||
}
|
||||
|
||||
bool EmulatorApp::OnInitialize() {
|
||||
#if XE_ARCH_AMD64 == 1
|
||||
amd64::InitFeatureFlags();
|
||||
#endif
|
||||
Profiler::Initialize();
|
||||
Profiler::ThreadEnter("Main");
|
||||
|
||||
@@ -472,6 +469,10 @@ bool EmulatorApp::OnInitialize() {
|
||||
|
||||
config::SetupConfig(storage_root);
|
||||
|
||||
#if XE_ARCH_AMD64 == 1
|
||||
amd64::InitFeatureFlags();
|
||||
#endif
|
||||
|
||||
std::filesystem::path content_root = cvars::content_root;
|
||||
if (content_root.empty()) {
|
||||
content_root = storage_root / "content";
|
||||
|
||||
Reference in New Issue
Block a user