Move magic number into def
This commit is contained in:
parent
6209157cf2
commit
661ef826c3
@ -54,7 +54,7 @@ static void _unityplayer_callback(HMODULE unityModule) {
|
|||||||
// Remove dependency on shared resources by patching WriteTextureStatisticUserData
|
// Remove dependency on shared resources by patching WriteTextureStatisticUserData
|
||||||
unload_ctr_inc();
|
unload_ctr_inc();
|
||||||
|
|
||||||
wtsud_patch_addr = ((char*)unityModule) + 0x16430;
|
wtsud_patch_addr = ((char*)unityModule) + WTSUD_PATCH_OFFSET;
|
||||||
|
|
||||||
DWORD oldProtect;
|
DWORD oldProtect;
|
||||||
VirtualProtect(wtsud_patch_addr, JUMP_SIZE, PAGE_EXECUTE_READWRITE, &oldProtect);
|
VirtualProtect(wtsud_patch_addr, JUMP_SIZE, PAGE_EXECUTE_READWRITE, &oldProtect);
|
||||||
|
Loading…
Reference in New Issue
Block a user