Ejemplo n.º 1
0
 /// <summary>
 /// Loads the old manifest from disk.
 /// </summary>
 private void LoadOldManifest()
 {
     try
     {
         lock (OldManifestLock)
         {
             if (File.Exists(ConfigHandler.GetOldManifestPath()))
             {
                 string[] rawOldManifest = File.ReadAllLines(ConfigHandler.GetOldManifestPath());
                 foreach (string rawEntry in rawOldManifest)
                 {
                     ManifestEntry newEntry = new ManifestEntry();
                     if (ManifestEntry.TryParse(rawEntry, out newEntry))
                     {
                         oldManifest.Add(newEntry);
                     }
                 }
             }
         }
     }
     catch (IOException ioex)
     {
         Console.WriteLine("IOException in LoadOldManifest(): " + ioex.Message);
     }
 }