0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 08:30:45 -05:00
modules/project/Aki.Core/Patches/BattlEyePatch.cs

25 lines
644 B
C#
Raw Normal View History

2023-03-03 18:52:31 +00:00
using Aki.Core.Utils;
using Aki.Reflection.Patching;
using System.Reflection;
using System.Threading.Tasks;
using HarmonyLib;
2023-03-03 18:52:31 +00:00
namespace Aki.Core.Patches
{
public class BattlEyePatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(BattleeyePatchClass), nameof(BattleeyePatchClass.RunValidation));
2023-03-03 18:52:31 +00:00
}
[PatchPrefix]
private static bool PatchPrefix(ref Task __result, ref bool ___bool_0)
{
___bool_0 = ValidationUtil.Validate();
__result = Task.CompletedTask;
return false;
}
}
}