[*] Update processmap
This commit is contained in:
parent
68bfdd1f8d
commit
0dcfd23fc7
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user