mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 06:00:41 +02:00
Merge pull request #5365 from Sonicadvance1/111
Config: Fix issue with config overrides
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user