void (*old_update)(DWORD*);
void update(DWORD* instance)
{
*(int*)((uint64_t)instance + 0xC) = 99999;
old_update(instance);
}
void Create()
{
MH_Initialize();
MH_CreateHook(reinterpret_cast<LPVOID>(L::GameAssembly + 0x764500), &update, (LPVOID*)&old_update);
MH_EnableHook(reinterpret_cast<LPVOID>(L::GameAssembly + 0x764500));
}
Hello
Please help me hook this field, it doesnt hooking
void update(DWORD* instance)
{
*(int*)((uint64_t)instance + 0xC) = 99999;
old_update(instance);
}
void Create()
{
MH_Initialize();
MH_CreateHook(reinterpret_cast<LPVOID>(L::GameAssembly + 0x764500), &update, (LPVOID*)&old_update);
MH_EnableHook(reinterpret_cast<LPVOID>(L::GameAssembly + 0x764500));
}
Hello
Please help me hook this field, it doesnt hooking