Move magic number into def

This commit is contained in:
mkrsym1 2023-06-21 16:24:16 +03:00
parent 6209157cf2
commit 661ef826c3

View File

@ -54,7 +54,7 @@ static void _unityplayer_callback(HMODULE unityModule) {
// Remove dependency on shared resources by patching WriteTextureStatisticUserData
unload_ctr_inc();
wtsud_patch_addr = ((char*)unityModule) + 0x16430;
wtsud_patch_addr = ((char*)unityModule) + WTSUD_PATCH_OFFSET;
DWORD oldProtect;
VirtualProtect(wtsud_patch_addr, JUMP_SIZE, PAGE_EXECUTE_READWRITE, &oldProtect);