public override void Save(IModFileSaver saver) { using (var stream = _loader.OpenStream()) { saver.Save(Path, stream); } }
public override void Save(IModFileSaver saver) { if (Resolved) { base.Save(saver); } else { var stream = CreateMergeZip(); var extension = System.IO.Path.GetExtension(Path); var newPath = System.IO.Path.ChangeExtension(Path, $"{extension}.mzip"); saver.Save(newPath, stream); } }
public virtual void Save(IModFileSaver saver) { saver.Save(Path, RawContents, BoMEncoding); }