mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fixed 1.8
This commit is contained in:
@@ -607,6 +607,10 @@ std::vector<uint64> Addresses::GetFunctionsToNull()
|
|||||||
|
|
||||||
if (Engine_Version == 416)
|
if (Engine_Version == 416)
|
||||||
{
|
{
|
||||||
|
toNull.push_back(Memcury::Scanner::FindPattern("4C 89 44 24 ? 88 54 24 ? 48 89 4C 24 ? 56 57 48 81 EC ? ? ? ? 33 C0 83 F8 ? 0F 84 ? ? ? ? B8").Get()); // 1.8 switch state
|
||||||
|
// toNull.push_back(Memcury::Scanner::FindPattern("48 89 4C 24 ? 48 81 EC ? ? ? ? 48 8B 84 24 ? ? ? ? ? ? ? 48 8B 8C 24 ? ? ? ? FF 90 ? ? ? ? 48 89 84 24 ? ? ? ? 48 8B 84 24 ? ? ? ? 48").Get()); // trigger ui stuff 1.8
|
||||||
|
// toNull.push_back(Memcury::Scanner::FindPattern("48 89 4C 24 ? 48 81 EC ? ? ? ? 48 8B 84 24 ? ? ? ? ? ? ? 48 8B 8C 24 ? ? ? ? FF 90 ? ? ? ? 48 89 84 24 ? ? ? ? 48 8B 84 24 ? ? ? ? 48", true, 1).Get()); // trigger ui stuff 1.8 ^^
|
||||||
|
toNull.push_back(Memcury::Scanner::FindPattern("48 89 54 24 ? 48 89 4C 24 ? 55 53 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 8B 41 ? C1 E8 ? A8 ? 0F 84 ? ? ? ? 80 3D").Get()); // widget class 1.8
|
||||||
toNull.push_back(Memcury::Scanner::FindPattern("48 89 54 24 ? 48 89 4C 24 ? 55 53 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 8B 41 08 C1 E8 05").Get()); // Widget class
|
toNull.push_back(Memcury::Scanner::FindPattern("48 89 54 24 ? 48 89 4C 24 ? 55 53 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 8B 41 08 C1 E8 05").Get()); // Widget class
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1269,7 +1269,13 @@ DWORD WINAPI Main(LPVOID)
|
|||||||
|
|
||||||
std::cout << "before byte: " << (int)*before << '\n';
|
std::cout << "before byte: " << (int)*before << '\n';
|
||||||
|
|
||||||
|
DWORD dwProtection;
|
||||||
|
VirtualProtect((PVOID)before, 1, PAGE_EXECUTE_READWRITE, &dwProtection);
|
||||||
|
|
||||||
*before = 0x74; // jump if zero
|
*before = 0x74; // jump if zero
|
||||||
|
|
||||||
|
DWORD dwTemp;
|
||||||
|
VirtualProtect((PVOID)before, 1, dwProtection, &dwTemp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
7
vendor/memcury.h
vendored
7
vendor/memcury.h
vendored
@@ -715,7 +715,7 @@
|
|||||||
return FindPatternEx(handle, pattern, mask, module, module + Memcury::PE::GetNTHeaders()->OptionalHeader.SizeOfImage);
|
return FindPatternEx(handle, pattern, mask, module, module + Memcury::PE::GetNTHeaders()->OptionalHeader.SizeOfImage);
|
||||||
}
|
}
|
||||||
|
|
||||||
static auto FindPattern(const char* signature, bool bWarnIfNotFound = true) -> Scanner
|
static auto FindPattern(const char* signature, bool bWarnIfNotFound = true, int skip = 0) -> Scanner
|
||||||
{
|
{
|
||||||
PE::Address add{ nullptr };
|
PE::Address add{ nullptr };
|
||||||
|
|
||||||
@@ -740,6 +740,11 @@
|
|||||||
|
|
||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
|
if (skip > 0)
|
||||||
|
{
|
||||||
|
return FindPattern(signature, bWarnIfNotFound, --skip);
|
||||||
|
}
|
||||||
|
|
||||||
add = reinterpret_cast<uintptr_t>(&scanBytes[i]);
|
add = reinterpret_cast<uintptr_t>(&scanBytes[i]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user