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;
	}
}
示例#2
0
void CDetour::EnableDetour()
{
	if (!detoured)
	{
		DoGatePatch((unsigned char *)detour_address, &detour_callback);
		detoured = true;
	}
}