static string FindModInfo(Archive archive, string extension) { return archive.ListFiles().FirstOrDefault(fileName => fileName.ToLower() == "modinfo." + extension); }
public LazyFileData(string fileName, Archive archive) { FileName = fileName; this.archive = archive; ArchiveName = archive.Name; }