Пример #1
0
 public void HarmonyInitDetour()
 {
     if (!HarmonyDetourInited)
     {
         DebugLog.LogToFileOnly("Init harmony detours");
         HarmonyDetours.Apply();
         HarmonyDetourInited = true;
     }
 }
Пример #2
0
 public void HarmonyRevertDetour()
 {
     if (HarmonyDetourInited)
     {
         DebugLog.LogToFileOnly("Revert harmony detours");
         HarmonyDetours.DeApply();
         HarmonyDetourInited = false;
         HarmonyDetourFailed = true;
     }
 }
Пример #3
0
 public static void HarmonyInitDetour()
 {
     if (HarmonyHelper.IsHarmonyInstalled)
     {
         if (!HarmonyDetourInited)
         {
             DebugLog.LogToFileOnly("Init harmony detours");
             HarmonyDetours.Apply();
             HarmonyDetourInited = true;
         }
     }
 }