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,18 @@
#pragma once
#include <cstdint>
#include <vector>
#include <string>
namespace M {
template <typename T = std::uint8_t>
T* abs(T* relative_address, int pre_offset = 0x0, int post_offset = 0x0)
{
relative_address += pre_offset;
relative_address += sizeof(std::int32_t) + *reinterpret_cast<std::int32_t*>(relative_address);
relative_address += post_offset;
return relative_address;
}
std::uint8_t* FindPattern(const char* module_name, const std::string& byte_sequence);
uintptr_t patternScan(const std::string& module, const std::string& pattern);
}