WINE: Fixes FEX_PORTABLE usage

Completely didn't listen to FEX_PORTABLE. Necessary otherwise it can
read configs from some random locations when portable is enabled.
This commit is contained in:
Ryan Houdek committed 2025-02-06 15:36:27 -08:00
1 parent 20b00ecc9b
commit 854e699589
5 files changed
+27 -6

No files matched your search

+2 -1
View File
@@ -36,6 +36,7 @@ $end_info$
#include "Common/Logging.h"
#include "Common/Module.h"
#include "Common/CRT/CRT.h"
#include "Common/PortabilityInfo.h"
#include "DummyHandlers.h"
#include "BTInterface.h"
@@ -447,7 +448,7 @@ public:
void BTCpuProcessInit() {
FEX::Windows::InitCRTProcess();
FEX::Config::LoadConfig(nullptr, FEX::Windows::GetExecutableFilePath());
FEX::Config::LoadConfig(nullptr, FEX::Windows::GetExecutableFilePath(), nullptr, FEX::ReadPortabilityInformation());
FEXCore::Config::ReloadMetaLayer();
FEX::Windows::Logging::Init();