diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-01-24 14:25:49 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-01-24 14:58:20 -0500 |
| commit | e5b91f00b0688d5cba6870da6d6ad3300097b07f (patch) | |
| tree | 09ec8ac31ff935d63aa9c06004802156ac96ebf5 /Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp | |
| parent | ba6ee9d7ba9730e5b2165ff0ee18cbc23762b129 (diff) | |
Common: Replace StringBeginsWith/StringEndsWith with std equivalents
Obsoletes these functions in favor of the standard member functions
added in C++20.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp b/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp index d55284a65a..0111947608 100644 --- a/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.cpp @@ -642,7 +642,7 @@ void Init(const std::string& game_id) { hasbind = true; type = BIND_AXIS; - if (StringBeginsWith(value, "Device ''")) + if (value.starts_with("Device ''")) sscanf(value.c_str(), "Device ''-Axis %d%c", &bindnum, &modifier); else sscanf(value.c_str(), "Device '%127[^\']'-Axis %d%c", dev, &bindnum, &modifier); @@ -651,7 +651,7 @@ void Init(const std::string& game_id) { hasbind = true; type = BIND_BUTTON; - if (StringBeginsWith(value, "Device ''")) + if (value.starts_with("Device ''")) sscanf(value.c_str(), "Device ''-Button %d", &bindnum); else sscanf(value.c_str(), "Device '%127[^\']'-Button %d", dev, &bindnum); |
