Ejemplo n.º 1
0
void CriticalHitManager::EnableCriticalDetour()
{
	if (!detoured)
	{
		DoGatePatch((unsigned char *)critical_address, &critical_callback);
		DoGatePatch((unsigned char *)melee_address, &melee_callback);
		DoGatePatch((unsigned char *)knife_address, &knife_callback);
		detoured = true;
	}
}
Ejemplo n.º 2
0
void CDetour::EnableDetour()
{
	if (!detoured)
	{
		DoGatePatch((unsigned char *)detour_address, &detour_callback);
		detoured = true;
	}
}