mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Expand list of recognized input extensions
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user