Win32: Actually set app config path and name

Apparently we never set this and it happened to not be a problem. I
needed it to gather some data so fix it.
This commit is contained in:
Ryan Houdek committed 2026-07-30 20:51:29 -07:00
1 parent 2fdbff3d1c
commit 681636cd68
2 files changed
+8 -2

No files matched your search

+4 -1
View File
@@ -581,10 +581,13 @@ NTSTATUS ProcessInit() {
InitSyscalls();
FEX::Windows::InitCRTProcess();
const auto ExecutableName = FEX::Windows::BaseName(FEX::Windows::GetExecutableFilePath());
const auto ExecutablePath = FEX::Windows::GetExecutableFilePath();
const auto ExecutableName = FEX::Windows::BaseName(ExecutablePath);
FEX::Config::LoadConfig(fextl::string {ExecutableName}, _environ, FEX::ReadPortabilityInformation());
FEXCore::Config::ReloadMetaLayer();
FEX::Windows::Logging::Init();
FEXCore::Config::Set(FEXCore::Config::CONFIG_APP_FILENAME, ExecutablePath);
FEXCore::Config::Set(FEXCore::Config::CONFIG_APP_CONFIG_NAME, ExecutableName);
FEXCore::Config::Set(FEXCore::Config::CONFIG_IS64BIT_MODE, "1");
+4 -1
View File
@@ -515,13 +515,16 @@ public:
void BTCpuProcessInit() {
FEX::Windows::InitCRTProcess();
const auto ExecutableName = FEX::Windows::BaseName(FEX::Windows::GetExecutableFilePath());
const auto ExecutablePath = FEX::Windows::GetExecutableFilePath();
const auto ExecutableName = FEX::Windows::BaseName(ExecutablePath);
FEX::Config::LoadConfig(fextl::string {ExecutableName}, _environ, FEX::ReadPortabilityInformation());
FEXCore::Config::ReloadMetaLayer();
FEX::Windows::Logging::Init();
FEXCore::Config::Set(FEXCore::Config::CONFIG_INTERPRETER_INSTALLED, "0");
FEXCore::Config::Set(FEXCore::Config::CONFIG_IS64BIT_MODE, "0");
FEXCore::Config::Set(FEXCore::Config::CONFIG_APP_FILENAME, ExecutablePath);
FEXCore::Config::Set(FEXCore::Config::CONFIG_APP_CONFIG_NAME, ExecutableName);
FEXCore::Profiler::Init("", "");