Beispiel #1
0
 public void LoadPatchesFromFolder(string folder)
 {
     pfiles.Clear();
     this.filenames.Clear();
     string[] filenames = Directory.GetFiles(folder);
     for (int i = filenames.Length - 1; i >= 0; --i)
     {
         PatchFile pfile = PatchFile.BuildPatchFile(filenames[i]);
         if (pfile != null)
         {
             pfiles.Add(pfile);
         }
     }
 }
Beispiel #2
0
 //public string RootDir
 //{
 //    get;
 //    set;
 //}
 public void MakePatch()
 {
     //from root dir
     //just find line with specific values
     pfiles.Clear();
     filenames.Clear();
     foreach (string srcFolder in this.srcFolders)
     {
         CollectFilesRecursive(srcFolder);
     }
     //--------------------------------------
     for (int i = filenames.Count - 1; i >= 0; --i)
     {
         PatchFile pfile = PatchFile.BuildPatchFile(filenames[i]);
         if (pfile != null)
         {
             pfiles.Add(pfile);
         }
     }
 }