2022-05-14 19:53:00 +01:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Aki.Reflection.Patching;
|
|
|
|
|
using EFT;
|
|
|
|
|
|
|
|
|
|
namespace CWX_MasterKey
|
|
|
|
|
{
|
2022-05-25 13:36:03 +01:00
|
|
|
|
public class GameWorldPatch : ModulePatch
|
2022-05-14 19:53:00 +01:00
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
2022-05-21 17:48:06 +01:00
|
|
|
|
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
|
2022-05-14 19:53:00 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[PatchPostfix]
|
|
|
|
|
private static void PatchPostFix()
|
|
|
|
|
{
|
|
|
|
|
MasterKey.Start();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|