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:
Milxnor
2023-05-13 19:46:50 -04:00
parent 2335ad43a3
commit 1da6822119
31 changed files with 684 additions and 64 deletions

View File

@@ -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());