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