From f7c2b5ef1d39bb39126c28743a63155bf415e9ca Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Mon, 15 Aug 2022 04:57:24 +0200 Subject: 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 --- ZAPDUtils/Utils/StringHelper.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ZAPDUtils/Utils/StringHelper.cpp') 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) -- cgit v1.2.3