private static FileInfo GetNextFileInfo(ArchiveHeader ah, FileInfoRarFilePart currentFilePart)
        {
            if (currentFilePart == null)
            {
                return(null);
            }
            bool oldNumbering = ah.OldNumberingFormat ||
                                currentFilePart.MarkHeader.OldNumberingFormat;

            if (oldNumbering)
            {
                return(FindNextFileWithOldNumbering(currentFilePart.FileInfo));
            }
            else
            {
                return(FindNextFileWithNewNumbering(currentFilePart.FileInfo));
            }
        }
Beispiel #2
0
        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));
            }
        }