[ArchiveTools] Expand list of recognized input extensions

This commit is contained in:
Matt Nadareski
2016-08-18 20:01:50 -07:00
parent 9c26eb9710
commit 7a2329dfe7

View File

@@ -586,12 +586,14 @@ namespace SabreTools.Helper
// First line of defense is going to be the extension, for better or worse // First line of defense is going to be the extension, for better or worse
string ext = Path.GetExtension(input).ToLowerInvariant(); string ext = Path.GetExtension(input).ToLowerInvariant();
if (ext != "7z" && ext != "gz" && ext != "rar" && ext != "tar" && ext != "zip" && ext != "z") if (ext != "7z" && ext != "gz" && ext != "lzma" && ext != "rar"
&& ext != "rev" && ext != "r00" && ext != "r01" && ext != "tar"
&& ext != "tgz" && ext != "tlz" && ext != "zip" && ext != "zipx")
{ {
return outtype; return outtype;
} }
// Read the first bytes of the file and get the magic numbe // Read the first bytes of the file and get the magic number
try try
{ {
byte[] magic = new byte[8]; byte[] magic = new byte[8];