From dc19e64dd422cfaa36df1dea5194416f4b1a577a Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Fri, 29 Sep 2023 21:31:44 -0700 Subject: [PATCH] fix config path setup --- Source/Core/UICommon/UICommon.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp index cbe1d00ca94b..9e6476fb5fa7 100644 --- a/Source/Core/UICommon/UICommon.cpp +++ b/Source/Core/UICommon/UICommon.cpp @@ -470,10 +470,9 @@ void SetUserDirectory(std::string custom_path) #else const config_dir_name = PLAYBACK_USER_DIR; #endif - user_path = std::string(config_home && config_home[0] == '/' ? - config_home + DIR_SEP config_dir_name DIR_SEP : - (home_path + ".config")) + - DIR_SEP config_dir_name DIR_SEP; + const auto config_path = + std::string(config_home && config_home[0] == '/' ? config_home : (home_path + ".config")); + user_path = config_path + DIR_SEP + config_dir_name + DIR_SEP; // user_path = home_path + "." NORMAL_USER_DIR DIR_SEP; // if (!File::Exists(user_path))