[*] Update processmap

This commit is contained in:
Reece Wilson 2022-03-23 16:14:53 +00:00
parent 68bfdd1f8d
commit 0dcfd23fc7

View File

@ -18,13 +18,16 @@
namespace Aurora::Process
{
struct ModuleBasePairUtil
struct ModuleBasePairHash
{
AuUInt operator()(const ModuleBasePair &in) const
{
return in.modBase;
}
};
struct ModuleBasePairEq
{
constexpr bool operator()(const ModuleBasePair &lhs, const AuString &rhs) const
{
return lhs.module == rhs;
@ -56,7 +59,7 @@ namespace Aurora::Process
static const auto kPageBufferPad = 20;
static AuThreadPrimitives::MutexUnique_t gMutexUnique;
static AuHashMapEx<ModuleBasePair, AuSPtr<PublicModule>, ModuleBasePairUtil> gModuleMap;
static AuHashMap<ModuleBasePair, AuSPtr<PublicModule>, ModuleBasePairHash, ModuleBasePairEq> gModuleMap;
static AuUInt ToLowestPageAlignment(AuUInt in)
{