private static FileInfo GetNextFileInfo(ArchiveHeader ah, FileInfoRarFilePart currentFilePart) { if (currentFilePart == null) { return null; } bool oldNumbering = !ah.ArchiveHeaderFlags.HasFlag(ArchiveFlags.NEWNUMBERING) || currentFilePart.MarkHeader.OldFormat; if (oldNumbering) { return FindNextFileWithOldNumbering(currentFilePart.FileInfo); } else { return FindNextFileWithNewNumbering(currentFilePart.FileInfo); } }
private static FileInfo GetNextFileInfo(ArchiveHeader ah, FileInfoRarFilePart currentFilePart) { if (currentFilePart == null) { return(null); } bool oldNumbering = !ah.ArchiveHeaderFlags.HasFlag(ArchiveFlags.NEWNUMBERING) || currentFilePart.MarkHeader.OldFormat; if (oldNumbering) { return(FindNextFileWithOldNumbering(currentFilePart.FileInfo)); } else { return(FindNextFileWithNewNumbering(currentFilePart.FileInfo)); } }