Merge pull request #5794 from Sonicadvance1/194

Win32: Actually set app config path and name
This commit is contained in:
Ryan Houdek authored and GitHub committed 2026-08-05 19:50:37 -07:00
commit c772c0e4e7
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("", "");