Small fix just in case. (#25)

This commit is contained in:
HeroponRikiBestest
2025-09-27 12:59:02 -04:00
committed by GitHub
parent cb41f8a8a6
commit 2b9a527743
2 changed files with 8 additions and 2 deletions

View File

@@ -87,7 +87,10 @@ namespace SabreTools.Serialization.Wrappers
}
}
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);

View File

@@ -86,7 +86,10 @@ namespace SabreTools.Serialization.Wrappers
}
}
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);