This commit is contained in:
Oscar
2025-07-17 13:52:06 +03:00
commit 2f50c8a911
206 changed files with 246874 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#include "gaa.h"
uintptr_t M::getAbsoluteAddress(uintptr_t addr, const int nPreOffset, const int nPostOffset) {
addr += nPreOffset;
int32_t nRva = *reinterpret_cast<int32_t*>(addr);
addr += nPostOffset + sizeof(uint32_t) + nRva;
return addr;
}

View File

@@ -0,0 +1,6 @@
#pragma once
#include <cstdint>
namespace M {
uintptr_t getAbsoluteAddress(uintptr_t addr, const int nPreOffset, const int nPostOffset = 0);
}