diff options
| author | JMC47 <JMC4789@gmail.com> | 2024-09-26 18:20:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-26 18:20:14 -0400 |
| commit | 0d7e94e8b3019a3eeffe0b1f454ece1342c0911e (patch) | |
| tree | f2daa7139696aff3a2bed73c88bf19de3735cca4 /Source/Core/InputCommon/ControllerInterface | |
| parent | 4bc1546596994c3f6e82b0be421c82f6fbf86a86 (diff) | |
| parent | 5f906736863f35a7018aaa11a7cac408229c21cf (diff) | |
Merge pull request #13070 from mitaclaw/remove-join-strings
StringUtil: Remove `JoinStrings`
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp index 56bab1a981..4acee6a970 100644 --- a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp +++ b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp @@ -9,6 +9,7 @@ #include <vector> #include <fmt/format.h> +#include <fmt/ranges.h> #include "Common/StringUtil.h" #include "InputCommon/ControllerInterface/CoreDevice.h" @@ -96,12 +97,12 @@ BuildExpression(const std::vector<ciface::Core::DeviceContainer::InputDetection> if (is_hotkey) { - alternations.push_back(fmt::format("@({})", JoinStrings(alternation, "+"))); + alternations.push_back(fmt::format("@({})", fmt::join(alternation, "+"))); } else { std::sort(alternation.begin(), alternation.end()); - alternations.push_back(JoinStrings(alternation, "&")); + alternations.push_back(fmt::to_string(fmt::join(alternation, "&"))); } }; @@ -130,7 +131,7 @@ BuildExpression(const std::vector<ciface::Core::DeviceContainer::InputDetection> std::sort(alternations.begin(), alternations.end()); alternations.erase(std::unique(alternations.begin(), alternations.end()), alternations.end()); - return JoinStrings(alternations, "|"); + return fmt::to_string(fmt::join(alternations, "|")); } void RemoveSpuriousTriggerCombinations( |
