diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2023-01-24 21:51:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-24 21:51:15 +0100 |
| commit | 4b2c00e239f44e79190cc156e4557ea4aaf64bd2 (patch) | |
| tree | 09ec8ac31ff935d63aa9c06004802156ac96ebf5 /Source/Core/InputCommon/ControllerInterface | |
| parent | ba6ee9d7ba9730e5b2165ff0ee18cbc23762b129 (diff) | |
| parent | e5b91f00b0688d5cba6870da6d6ad3300097b07f (diff) | |
Merge pull request #11487 from lioncash/str
Common: Replace StringBeginsWith/StringEndsWith with std equivalents
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -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); |
