[App] ensure InitFeatureFlags is called after cvar parsing

Fixes x64_exension_mask being applied
This commit is contained in:
Herman S.
2025-10-21 10:54:12 +09:00
committed by Radosław Gliński
parent a1a33b9939
commit f4b471d000

View File

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