public static XmlFileHistory FromInstrGroup(PatchGroup group) { return new XmlFileHistory() { PatchHistory = group.Instructions.Select(XmlPatchHistory.FromInstruction).ToList(), TargetPath = group.TargetPath }; }
public static XmlFileHistory FromInstrGroup(PatchGroup group) { return(new XmlFileHistory() { PatchHistory = group.Instructions.Select(XmlPatchHistory.FromInstruction).ToList(), TargetPath = group.TargetPath }); }
/// <exception cref="T:PatchworkLauncher.PatchingProcessException">Cannot switch files safely during the patching process</exception> public static void TrySwitchFilesSafely(string sourcePath, string destinationPath, string backupPath, PatchGroup patchGroup) { try { PatchingHelper.SwitchFilesSafely(sourcePath, destinationPath, backupPath); } catch (Exception exception) { throw new PatchingProcessException(exception) { AssociatedInstruction = null, AssociatedPatchGroup = patchGroup, Step = PatchProcessingStep.PerformingSwitch }; } }