public static void Patch() { Harmony.PatchAllInType(typeof(AimeUnitPatches)); Harmony.PerformPatch("AimeUnit#.ctor", typeof(AimeUnit).GetConstructor((System.Reflection.BindingFlags) 62, null, new Type[] { typeof(IntPtr) }, null), prefix: Harmony.GetPatch("AimeUnitCtorPatch", typeof(Main))); }
public static void Patch() { Harmony.MakeRET(typeof(Jvs), "execute"); Type type = typeof(Jvs).GetNestedType("JvsSwitch", (BindingFlags)62); Harmony.PerformPatch("JvsSwitch # .ctor", type.GetConstructor((BindingFlags)62, null, new Type[] { typeof(int), typeof(string), typeof(KeyCode), typeof(bool), typeof(bool) }, null), transpiler: Harmony.GetPatch("JvsSwitchCtorPatch", typeof(JvsPatches))); Harmony.PatchAllInType(typeof(JvsPatches)); }