diff --git a/src/LibHac/SwitchFs.cs b/src/LibHac/SwitchFs.cs index b949fe3f..e814e997 100644 --- a/src/LibHac/SwitchFs.cs +++ b/src/LibHac/SwitchFs.cs @@ -61,7 +61,10 @@ namespace LibHac private void OpenAllNcas() { - IEnumerable files = ContentFs.OpenDirectory("/", OpenDirectoryMode.All).EnumerateEntries("*.nca", SearchOptions.RecurseSubdirectories); + // Todo: give warning if directories named "*.nca" are found or manually fix the archive bit + IEnumerable files = ContentFs.OpenDirectory("/", OpenDirectoryMode.All) + .EnumerateEntries("*.nca", SearchOptions.RecurseSubdirectories) + .Where(x => x.Type == DirectoryEntryType.File); foreach (DirectoryEntry fileEntry in files) {