mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
hactoolnet: Don't fix archive flag on non-Windows platforms
This commit is contained in:
parent
90c048c389
commit
ab8283183b
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,10 @@ using LibHac.Fs;
|
||||||
using LibHac.Fs.NcaUtils;
|
using LibHac.Fs.NcaUtils;
|
||||||
using LibHac.Fs.Save;
|
using LibHac.Fs.Save;
|
||||||
|
|
||||||
|
#if NETCOREAPP
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace hactoolnet
|
namespace hactoolnet
|
||||||
{
|
{
|
||||||
internal static class ProcessSwitchFs
|
internal static class ProcessSwitchFs
|
||||||
|
@ -305,6 +309,11 @@ namespace hactoolnet
|
||||||
|
|
||||||
private static void CheckForNcaFolders(Context ctx, SwitchFs switchFs)
|
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;
|
IFileSystem fs = switchFs.ContentFs;
|
||||||
|
|
||||||
DirectoryEntry[] ncaDirs = fs.EnumerateEntries("*.nca", SearchOptions.RecurseSubdirectories)
|
DirectoryEntry[] ncaDirs = fs.EnumerateEntries("*.nca", SearchOptions.RecurseSubdirectories)
|
||||||
|
|
Loading…
Reference in a new issue