tomap / SevenZipSharp

Fork of SevenZipSharp on CodePlex
Other
65 stars 166 forks source link

Add support for RAR v5.0 #13

Closed squid-box closed 6 years ago

squid-box commented 6 years ago

Currently RAR5 is not supported by SevenZipSharp, I had a look at #11 and thought it might be a quick thing to add, but the problem is that both RAR4 and RAR5 use the .rar extension, so to add RAR5 it seems you'd have to overwrite RAR4 (and I can't find any mention on whether or not you can open a RAR4 file the same way as a RAR5 file).

In theory what's needed is to change /SevenZip/Formats.cs:

But the file extension confuses me, you can't add two duplicate extensions to InExtensionFormats.