예제 #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;
     }
 }