fixed 1.8

This commit is contained in:
Gray
2025-07-30 00:36:31 -04:00
parent dbcb30c8d6
commit 63bf8785fa
3 changed files with 16 additions and 1 deletions

View File

@@ -607,6 +607,10 @@ std::vector<uint64> Addresses::GetFunctionsToNull()
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
}

View File

@@ -1269,7 +1269,13 @@ DWORD WINAPI Main(LPVOID)
std::cout << "before byte: " << (int)*before << '\n';
DWORD dwProtection;
VirtualProtect((PVOID)before, 1, PAGE_EXECUTE_READWRITE, &dwProtection);
*before = 0x74; // jump if zero
DWORD dwTemp;
VirtualProtect((PVOID)before, 1, dwProtection, &dwTemp);
}
}

7
vendor/memcury.h vendored
View File

@@ -715,7 +715,7 @@
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 };
@@ -740,6 +740,11 @@
if (found)
{
if (skip > 0)
{
return FindPattern(signature, bWarnIfNotFound, --skip);
}
add = reinterpret_cast<uintptr_t>(&scanBytes[i]);
break;
}