コード例 #1
0
 public override void Save(IModFileSaver saver)
 {
     using (var stream = _loader.OpenStream())
     {
         saver.Save(Path, stream);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 public virtual void Save(IModFileSaver saver)
 {
     saver.Save(Path, RawContents, BoMEncoding);
 }