summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/InputProfile.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2024-02-05 09:47:08 -0500
committerGitHub <noreply@github.com>2024-02-05 09:47:08 -0500
commit9240f579eab18a2f67eef23846a6b508393d0e6c (patch)
tree80aea0c56b0108e60c0f791713be0960e490b407 /Source/Core/InputCommon/InputProfile.cpp
parentabbc4bd0bdff1a792bc0f6e912a022c17bd8668a (diff)
parent1315b54ffaa2833ddda7e543945c88ed5396efd6 (diff)
Merge pull request #12561 from JosJuice/profile-consistency
InputCommon: Fix profile path inconsistencies
Diffstat (limited to 'Source/Core/InputCommon/InputProfile.cpp')
-rw-r--r--Source/Core/InputCommon/InputProfile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/InputProfile.cpp b/Source/Core/InputCommon/InputProfile.cpp
index 81d04cf75a..0d439c48e1 100644
--- a/Source/Core/InputCommon/InputProfile.cpp
+++ b/Source/Core/InputCommon/InputProfile.cpp
@@ -55,8 +55,8 @@ std::vector<std::string> GetProfilesFromSetting(const std::string& setting, cons
std::vector<std::string> ProfileCycler::GetProfilesForDevice(InputConfig* device_configuration)
{
- const std::string device_profile_root_location(File::GetUserPath(D_CONFIG_IDX) + "Profiles/" +
- device_configuration->GetProfileName());
+ const std::string device_profile_root_location(
+ device_configuration->GetUserProfileDirectoryPath());
return Common::DoFileSearch({device_profile_root_location}, {".ini"}, true);
}
@@ -101,8 +101,8 @@ ProfileCycler::GetMatchingProfilesFromSetting(const std::string& setting,
const std::vector<std::string>& profiles,
InputConfig* device_configuration)
{
- const std::string device_profile_root_location(File::GetUserPath(D_CONFIG_IDX) + "Profiles/" +
- device_configuration->GetProfileName() + "/");
+ const std::string device_profile_root_location(
+ device_configuration->GetUserProfileDirectoryPath());
const auto& profiles_from_setting = GetProfilesFromSetting(setting, device_profile_root_location);
if (profiles_from_setting.empty())