20 lines
460 B
C#

using System.Reflection;
using Aki.Reflection.Patching;
using EFT;
namespace CWX_MasterKey
{
public class GameWorldPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
}
[PatchPostfix]
private static void PatchPostFix()
{
MasterKey.Start();
}
}
}