diff options
| author | GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> | 2022-08-15 04:57:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-14 22:57:24 -0400 |
| commit | f7c2b5ef1d39bb39126c28743a63155bf415e9ca (patch) | |
| tree | e94e3bbcca8aa3266a15d28e0507eed3227172e9 /ZAPDUtils/Utils/StringHelper.cpp | |
| parent | b17ef7f66d5b1feecd02363960077110275058b6 (diff) | |
Wii U support (#1097)
* Wii U support
* [WiiU] Combined Dockerfile
* [WiiU] Combined Dockerfile
* [WiiU] Combined Dockerfile
* Add Jenkins support
* wiiu: fix scissor clamp
* wiiu: improve button remapping
* wiiu: fix scaling issues
* Update Dockerfile after merge
* Pull assets before build
* Only stop container once
* Adjust logging sinks
* wiiu: Change button mapping to match PC version
* wiiu: Implement controller changes
* wiiu: Update BUILDING.md
Co-authored-by: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com>
Co-authored-by: David Chavez <david@dcvz.io>
Diffstat (limited to 'ZAPDUtils/Utils/StringHelper.cpp')
| -rw-r--r-- | ZAPDUtils/Utils/StringHelper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ZAPDUtils/Utils/StringHelper.cpp b/ZAPDUtils/Utils/StringHelper.cpp index 051e9a8..26a8af3 100644 --- a/ZAPDUtils/Utils/StringHelper.cpp +++ b/ZAPDUtils/Utils/StringHelper.cpp @@ -64,7 +64,11 @@ void StringHelper::ReplaceOriginal(std::string& str, const std::string& from, co bool StringHelper::StartsWith(const std::string& s, const std::string& input) { +#if __cplusplus >= 202002L + return s.starts_with(input.c_str()); +#else return s.rfind(input, 0) == 0; +#endif } bool StringHelper::Contains(const std::string& s, const std::string& input) |
