예제 #1
0
 public bool CheckPKNs()
 {
     foreach (ConanImageFile pkn in ConanImage.PKNFiles)
     {
         string  path    = Path.Combine(RippedDirectory, pkn.FilePath);
         PKNFile pknFile = PKNFiles.FirstOrDefault(p => p.FilePath == path);
         if (pknFile == null)
         {
             return(false);
         }
     }
     return(true);
 }
예제 #2
0
 public void InitPKNs()
 {
     PKNFiles.Clear();
     foreach (ConanImageFile pkn in ConanImage.PKNFiles)
     {
         foreach (FileDictionaryFolder folder in FileDictionary.Folders)
         {
             if (folder.Name != Path.GetFileNameWithoutExtension(pkn.FilePath))
             {
                 continue;
             }
             PKNFiles.Add(new PKNFile(Path.Combine(RippedDirectory, pkn.FilePath), folder));
             break;
         }
     }
 }