Remove file extension check from SharpCompressDearchivalMethod
caused .lsmv to not be recognised (it's .zip), wasn't strictly necessary anyway
This commit is contained in:
parent
af8a330422
commit
85f24ca486
|
@ -17,8 +17,6 @@ namespace BizHawk.Client.Common
|
|||
offset = 0;
|
||||
isExecutable = false;
|
||||
|
||||
if (!ArchiveExtensions.Contains(Path.GetExtension(fileName).ToLowerInvariant())) return false;
|
||||
|
||||
try
|
||||
{
|
||||
using var arcTest = ArchiveFactory.Open(fileName);
|
||||
|
@ -32,9 +30,6 @@ namespace BizHawk.Client.Common
|
|||
|
||||
public SharpCompressArchiveFile Construct(string path) => new SharpCompressArchiveFile(path);
|
||||
|
||||
/// <remarks>whitelist as to avoid exceptions</remarks>
|
||||
private static readonly string[] ArchiveExtensions = { ".zip", ".gz", ".gzip", ".tar", ".rar", ".7z" };
|
||||
|
||||
public static readonly SharpCompressDearchivalMethod Instance = new SharpCompressDearchivalMethod();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue