Exemplo n.º 1
0
        public static void ProfilePatch()
        {
            MethodTransplanting.PatchMethods(typeof(H_InfoCard));

            Modbase.Harmony.Patch(AccessTools.Method(typeof(StatsReportUtility), nameof(StatsReportUtility.DrawStatsReport), new[] { typeof(Rect), typeof(Thing) }),
                                  new HarmonyMethod(typeof(H_InfoCard), nameof(FUUUCK)));
        }
Exemplo n.º 2
0
 public static void ProfilePatch()
 {
     try
     {
         MethodTransplanting.PatchMethods(typeof(H_HarmonyPatches));
     }
     catch (Exception e)
     {
         ThreadSafeLogger.Error("Patching HarmonyPatches failed, errored with the message" + e.Message);
     }
 }
 public static void ProfilePatch()
 {
     try
     {
         MethodTransplanting.PatchMethods(typeof(H_HarmonyPatches));
     }
     catch (Exception e)
     {
         ThreadSafeLogger.ReportException(e, "Failed to patch HarmonyPatches");
     }
 }