From ab8283183b3b9595bfeaa2e716be818d2d45373a Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Tue, 9 Jul 2019 21:27:11 -0500 Subject: [PATCH] hactoolnet: Don't fix archive flag on non-Windows platforms --- src/hactoolnet/ProcessSwitchFs.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hactoolnet/ProcessSwitchFs.cs b/src/hactoolnet/ProcessSwitchFs.cs index ddac6b66..35ead159 100644 --- a/src/hactoolnet/ProcessSwitchFs.cs +++ b/src/hactoolnet/ProcessSwitchFs.cs @@ -8,6 +8,10 @@ using LibHac.Fs; using LibHac.Fs.NcaUtils; using LibHac.Fs.Save; +#if NETCOREAPP +using System.Runtime.InteropServices; +#endif + namespace hactoolnet { internal static class ProcessSwitchFs @@ -305,6 +309,11 @@ namespace hactoolnet private static void CheckForNcaFolders(Context ctx, SwitchFs switchFs) { +#if NETCOREAPP + // Skip this until Linux gets FAT attribute support + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) return; +#endif + IFileSystem fs = switchFs.ContentFs; DirectoryEntry[] ncaDirs = fs.EnumerateEntries("*.nca", SearchOptions.RecurseSubdirectories)