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); }
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; } } }