From acc187008f8bea6b32a515945b0ecb2b7aacd4af Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Thu, 21 Jan 2021 23:05:07 +1000 Subject: [PATCH] Fill out SharpCompress archive file ext. list, adding .tar SharpCompress claims to support .tar.bz2, .tar.gz, and .tar.lz, but I couldn't get them to work. Left them in for later --- .../SharpCompressDearchivalMethod.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/SharpCompressDearchivalMethod.cs b/src/BizHawk.Client.Common/SharpCompressDearchivalMethod.cs index 71882749d3..d91bd5a7ef 100644 --- a/src/BizHawk.Client.Common/SharpCompressDearchivalMethod.cs +++ b/src/BizHawk.Client.Common/SharpCompressDearchivalMethod.cs @@ -53,6 +53,16 @@ namespace BizHawk.Client.Common public static readonly SharpCompressDearchivalMethod Instance = new(); - public IReadOnlyCollection AllowedArchiveExtensions { get; } = new[] { ".zip", ".7z", ".rar", ".gz" }; // don't try any .tar.* formats, they don't work + public IReadOnlyCollection AllowedArchiveExtensions { get; } = new[] + { + ".7z", + ".gz", + ".rar", + ".tar", +// /*.tar*/".bz2", ".tb2", ".tbz", ".tbz2", ".tz2", +// /*.tar.gz,*/ ".taz", ".tgz", +// /*.tar*/".lz", + ".zip", + }; } }