From 0dcfd23fc7411ed9481cfb54bfda1fde1eb6d36b Mon Sep 17 00:00:00 2001 From: Reece Date: Wed, 23 Mar 2022 16:14:53 +0000 Subject: [PATCH] [*] Update processmap --- Source/Process/ProcessMap.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Process/ProcessMap.cpp b/Source/Process/ProcessMap.cpp index 34ab99b4..3dd5bd5a 100644 --- a/Source/Process/ProcessMap.cpp +++ b/Source/Process/ProcessMap.cpp @@ -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, ModuleBasePairUtil> gModuleMap; + static AuHashMap, ModuleBasePairHash, ModuleBasePairEq> gModuleMap; static AuUInt ToLowestPageAlignment(AuUInt in) {