diff --git a/.gitmodules b/.gitmodules index 580b490..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "boost-unordered"] - path = boost-unordered - url = https://gitlab.com/mkxp-z/boost-unordered.git diff --git a/boost-unordered b/boost-unordered deleted file mode 160000 index 8733773..0000000 --- a/boost-unordered +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 873377396eb173eebba30b753cb26d18abc2861d diff --git a/meson.build b/meson.build index 22e3703..d5be3e4 100644 --- a/meson.build +++ b/meson.build @@ -60,9 +60,6 @@ if steamworks_path != '' endif endif -# BOOST UNORDERED -global_include_dirs += include_directories('boost-unordered') - # GLES gfx_backend = get_option('gfx_backend') if gfx_backend == 'gles' diff --git a/src/crypto/rgssad.cpp b/src/crypto/rgssad.cpp index 9ae4ade..c0d150d 100644 --- a/src/crypto/rgssad.cpp +++ b/src/crypto/rgssad.cpp @@ -25,6 +25,8 @@ #include #include +#include + /* Equivalent Linear Congruential Generator (LCG) constants for iteration 2^n * all the way up to 2^32/4 (the largest dword offset possible in * RGSS{AD,[23]A}). diff --git a/src/util/boost-hash.h b/src/util/boost-hash.h index 4be3baa..9d11125 100644 --- a/src/util/boost-hash.h +++ b/src/util/boost-hash.h @@ -22,8 +22,10 @@ #ifndef BOOSTHASH_H #define BOOSTHASH_H -#include -#include + +// Need to use Map and Set, unordered can't handle pair apparently +#include +#include #include @@ -34,12 +36,10 @@ template class BoostHash { private: - typedef boost::unordered_map BoostType; - typedef std::pair PairType; - BoostType p; + std::map p = {}; public: - typedef typename BoostType::const_iterator const_iterator; + typedef typename std::map::const_iterator const_iterator; inline bool contains(const K &key) const { @@ -50,7 +50,8 @@ public: inline void insert(const K &key, const V &value) { - p.insert(PairType(key, value)); + p[key] = value; + //p.insert(std::pair(key, value)); } inline void remove(const K &key) @@ -103,11 +104,11 @@ template class BoostSet { private: - typedef boost::unordered_set BoostType; - BoostType p; + //typedef std::unordered_set BoostType; + std::set p; public: - typedef typename BoostType::const_iterator const_iterator; + typedef typename std::set::const_iterator const_iterator; inline bool contains(const K &key) {