Skip to content

Commit 3a2a6e4

Browse files
authored
Feature: Added support for opening and extracting mrpack files (#14942)
1 parent cc4a224 commit 3a2a6e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Files.App (Package)/Package.appxmanifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
<uap:FileType>.rar</uap:FileType>
143143
<uap:FileType>.tar</uap:FileType>
144144
<uap:FileType>.jar</uap:FileType>
145+
<uap:FileType>.mrpack</uap:FileType>
145146
</uap:SupportedFileTypes>
146147
<uap:Logo>assets\archives\ExtensionIcon.png</uap:Logo>
147148
</uap:FileTypeAssociation>

src/Files.Shared/Helpers/FileExtensionHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static bool IsPowerShellFile(string fileExtensionToCheck)
7272
/// <returns><c>true</c> if the fileExtensionToCheck is a zip bundle file; otherwise, <c>false</c>.</returns>
7373
public static bool IsZipFile(string? fileExtensionToCheck)
7474
{
75-
return HasExtension(fileExtensionToCheck, ".zip", ".msix", ".appx", ".msixbundle", ".appxbundle", ".7z", ".rar", ".tar", ".mcpack", ".mcworld", ".jar", ".gz", ".lzh");
75+
return HasExtension(fileExtensionToCheck, ".zip", ".msix", ".appx", ".msixbundle", ".appxbundle", ".7z", ".rar", ".tar", ".mcpack", ".mcworld", ".mrpack", ".jar", ".gz", ".lzh");
7676
}
7777

7878
public static bool IsBrowsableZipFile(string? filePath, out string? ext)
@@ -85,7 +85,7 @@ public static bool IsBrowsableZipFile(string? filePath, out string? ext)
8585
}
8686

8787
// Only extensions we want to browse
88-
ext = new[] { ".zip", ".7z", ".rar", ".tar", ".gz", ".lzh", ".jar" }
88+
ext = new[] { ".zip", ".7z", ".rar", ".tar", ".gz", ".lzh", ".mrpack", ".jar" }
8989
.FirstOrDefault(x => filePath.Contains(x, StringComparison.OrdinalIgnoreCase));
9090

9191
return ext is not null;

0 commit comments

Comments
 (0)