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);
}
}