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