From dc0162122f1c32d68d25daaad4bcb60d7ef1c48c Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 12 Mar 2026 17:46:05 -0700 Subject: [PATCH] Config: Fix issue with config overrides Accidentally was checking for Config override in the combination of portable config and `FEX_APP_CONFIG_LOCATION`. Fixes an early crash in PV. --- Source/Common/Config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Common/Config.cpp b/Source/Common/Config.cpp index c423d22e0..62fa61f94 100644 --- a/Source/Common/Config.cpp +++ b/Source/Common/Config.cpp @@ -634,7 +634,7 @@ fextl::string GetDataDirectory(bool Global, const PortableInformation& PortableI fextl::string GetConfigDirectory(bool Global, const PortableInformation& PortableInfo) { const char* ConfigOverride = getenv("FEX_APP_CONFIG_LOCATION"); - if (PortableInfo.IsPortable && (Global || !ConfigOverride)) { + if (PortableInfo.IsPortable && Global) { return fextl::fmt::format("{}/fex-emu/", PortableInfo.InterpreterPath); } else if (ConfigOverride && !Global) { fextl::string AppConfigStr = ConfigOverride;