mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
a bit
added some specific playlist items, fix s8-s10 markers because i broke, fixed removing items on aircraft on every version, added thanos stone automatic spawning, fix a bug with lategame, add marshmello stage, fix multiple battle buses, fix teams on large team gamemodes, fix some items not removing automatically
This commit is contained in:
@@ -248,8 +248,11 @@ namespace Hooking
|
||||
// *(int32_t*)(instrAddr + 1) = static_cast<int32_t>(delta);
|
||||
}
|
||||
|
||||
static bool Hook(UObject* DefaultClass, UFunction* Function, void* Detour, void** Original = nullptr, bool bUseSecondMethod = true, bool bHookExec = false) // Native hook
|
||||
static bool Hook(UObject* DefaultClass, UFunction* Function, void* Detour, void** Original = nullptr, bool bUseSecondMethod = true, bool bHookExec = false, bool bOverride = true) // Native hook
|
||||
{
|
||||
if (!bOverride)
|
||||
return false;
|
||||
|
||||
if (!Function)
|
||||
return false;
|
||||
|
||||
@@ -263,7 +266,7 @@ namespace Hooking
|
||||
|
||||
if (bHookExec)
|
||||
{
|
||||
LOG_INFO(LogDev, "Hooking Exec {}", Function->GetName());
|
||||
LOG_INFO(LogDev, "Hooking Exec {} at 0x{:x}", Function->GetName(), __int64(Exec) - __int64(GetModuleHandleW(0)));
|
||||
|
||||
if (Original)
|
||||
*Original = Exec;
|
||||
|
||||
Reference in New Issue
Block a user