mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
Merge pull request #5794 from Sonicadvance1/194
Win32: Actually set app config path and name
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -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");
|
||||
|
||||
|
||||
@@ -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("", "");
|
||||
|
||||
|
||||
Reference in new issue
Block a user