mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Reboot Living up to its name
almost finish rebooting (im going insane), performance, increase llama spawn radius, remove auto restart for a little bit
This commit is contained in:
@@ -18,6 +18,17 @@ struct FunctionHooks
|
||||
|
||||
static inline std::vector<FunctionHooks> AllFunctionHooks;
|
||||
|
||||
inline void PatchBytes(uint64 addr, const std::vector<uint8_t>& Bytes)
|
||||
{
|
||||
if (!addr)
|
||||
return;
|
||||
|
||||
for (int i = 0; i < Bytes.size(); i++)
|
||||
{
|
||||
*(uint8_t*)(addr + i) = Bytes.at(i);
|
||||
}
|
||||
}
|
||||
|
||||
inline __int64 GetFunctionIdxOrPtr2(UFunction* Function)
|
||||
{
|
||||
auto NativeAddr = __int64(Function->GetFunc());
|
||||
|
||||
Reference in New Issue
Block a user