Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion SabreTools.Serialization/Wrappers/RAR.Extraction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ public bool Extract(string outputDirectory, bool lookForHeader, bool includeDebu
}
}

if (isSolid)
// Still check SharpCompress's archive-level isSolid flag. Based on the way the check works on their
// end, it's possible that a multi-block solid archive might have the second (or more files) file not
// solid? It doesn't hurt to check either way.
if (isSolid || rarFile.IsSolid)
return ExtractSolid(rarFile, outputDirectory, includeDebug);
else
return ExtractNonSolid(rarFile, outputDirectory, includeDebug);
Expand Down
5 changes: 4 additions & 1 deletion SabreTools.Serialization/Wrappers/SevenZip.Extraction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ public bool Extract(string outputDirectory, bool lookForHeader, bool includeDebu
}
}

if (isSolid)
// Still check SharpCompress's archive-level isSolid flag. Based on the way the check works on their
// end, it's possible that a multi-block solid archive might have the second (or more files) file not
// solid? It doesn't hurt to check either way.
if (isSolid || sevenZip.IsSolid)
return ExtractSolid(sevenZip, outputDirectory, includeDebug);
else
return ExtractNonSolid(sevenZip, outputDirectory, includeDebug);
Expand Down