summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/InputProfile.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2018-04-28 13:54:00 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2018-07-07 12:55:52 -0500
commit83c94feb3d6bd60a23e57cdb0afd837172fa3a31 (patch)
treeee8524a3c0700a0bc0be7dfb856bc6042a130ad2 /Source/Core/InputCommon/InputProfile.cpp
parente10abaed3e4aa48379dc1a052d2d9a2851e8464d (diff)
Input: Trim profile names to allow spaces between ','s
Diffstat (limited to 'Source/Core/InputCommon/InputProfile.cpp')
-rw-r--r--Source/Core/InputCommon/InputProfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/InputProfile.cpp b/Source/Core/InputCommon/InputProfile.cpp
index 7cefa5122c..dc76c83fa8 100644
--- a/Source/Core/InputCommon/InputProfile.cpp
+++ b/Source/Core/InputCommon/InputProfile.cpp
@@ -69,7 +69,7 @@ namespace InputProfile
std::vector<std::string> result(profiles.size());
std::transform(profiles.begin(), profiles.end(), result.begin(), [&device_profile_root_location](const std::string& profile)
{
- return device_profile_root_location + "/" + profile + ".ini";
+ return device_profile_root_location + "/" + StripSpaces(profile) + ".ini";
});
return result;