diff --git a/src/Cemu/ExpressionParser/ExpressionParser.h b/src/Cemu/ExpressionParser/ExpressionParser.h index ddac18c1..0297ac2d 100644 --- a/src/Cemu/ExpressionParser/ExpressionParser.h +++ b/src/Cemu/ExpressionParser/ExpressionParser.h @@ -1,14 +1,6 @@ #pragma once #include "Common/precompiled.h" - -#include -#include -#include -#include -#include #include - -#include "boost/functional/hash_fwd.hpp" #include #ifdef __clang__ diff --git a/src/input/api/SDL/SDLControllerProvider.cpp b/src/input/api/SDL/SDLControllerProvider.cpp index 3aa146a4..e6787870 100644 --- a/src/input/api/SDL/SDLControllerProvider.cpp +++ b/src/input/api/SDL/SDLControllerProvider.cpp @@ -4,13 +4,16 @@ #include "util/helpers/TempState.h" #include -#include struct SDL_JoystickGUIDHash { - std::size_t operator()(const SDL_GUID& guid) const + std::size_t operator()(const SDL_GUID& guid) const noexcept { - return boost::hash_value(guid.data); + // FNV-1a + std::uint64_t hash = 14695981039346656037ull; + for (const auto byte : guid.data) + hash = (hash ^ byte) * 1099511628211ull; + return static_cast(hash); } }; diff --git a/vcpkg.json b/vcpkg.json index 7f5cecab..54f4c83b 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -20,10 +20,8 @@ "boost-program-options", "boost-nowide", "boost-algorithm", - "boost-functional", "boost-optional", "boost-signals2", - "boost-asio", "boost-ptr-container", "boost-property-tree", "boost-static-string",