mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Give bot skins
This commit is contained in:
13
vendor/memcury.h
vendored
13
vendor/memcury.h
vendored
@@ -960,6 +960,8 @@
|
||||
{
|
||||
const auto scanBytes = _address.GetAs<std::uint8_t*>();
|
||||
|
||||
bool bFound = false;
|
||||
|
||||
for (auto i = (forward ? 1 : -1); forward ? (i < 2048) : (i > -2048); forward ? i++ : i--)
|
||||
{
|
||||
bool found = true;
|
||||
@@ -971,7 +973,7 @@
|
||||
if (currentOpcode == -1)
|
||||
continue;
|
||||
|
||||
// std::cout << std::format("[{} {}] 0x{:x}\n", i, k, currentOpcode);
|
||||
// LOG_INFO(LogDev, "[{} 0x{:x}] 0x{:x}", i, __int64(&scanBytes[i]) - __int64(GetModuleHandleW(0)), currentOpcode);
|
||||
|
||||
found = currentOpcode == scanBytes[i + k];
|
||||
}
|
||||
@@ -984,10 +986,17 @@
|
||||
return ScanFor(opcodesToFind, forward, toSkip - 1);
|
||||
}
|
||||
|
||||
bFound = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!bFound)
|
||||
{
|
||||
LOG_ERROR(LogDev, "ScanFor failed!");
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -1439,6 +1448,8 @@
|
||||
if (!NameRef)
|
||||
return 0;
|
||||
|
||||
LOG_INFO(LogDev, "FindFunctionCall NameRef: 0x{:x}", __int64(NameRef) - __int64(GetModuleHandleW(0)));
|
||||
|
||||
return Memcury::Scanner(NameRef).ScanFor(Bytes, false).Get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user