diff --git a/xbox/native-bios/NativeBios.vcxproj b/xbox/native-bios/NativeBios.vcxproj index bcc62f5d93..ce1fa951ce 100644 --- a/xbox/native-bios/NativeBios.vcxproj +++ b/xbox/native-bios/NativeBios.vcxproj @@ -34,7 +34,8 @@ Usepch.h trueLevel4true - stdcpp20 + + stdcpp17 third_party\quickjs-ng;..\runtime\include;%(AdditionalIncludeDirectories) WINAPI_FAMILY=WINAPI_FAMILY_APP;QUICKJS_NG_BUILD;WIN32_LEAN_AND_MEAN;_WIN32_WINNT=0x0A00;%(PreprocessorDefinitions) diff --git a/xbox/runtime/include/ac/runtime.hpp b/xbox/runtime/include/ac/runtime.hpp index 596bb7c136..d7b7900ab4 100644 --- a/xbox/runtime/include/ac/runtime.hpp +++ b/xbox/runtime/include/ac/runtime.hpp @@ -29,7 +29,7 @@ struct GamepadState { float left_trigger = 0, right_trigger = 0; std::unordered_set down; [[nodiscard]] bool pressed(std::string_view button) const { - return down.contains(std::string(button)); + return down.find(std::string(button)) != down.end(); } };