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 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;