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