mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
SwitchFs: Don't try to open directories as NCA files
This commit is contained in:
parent
cc9ca448f0
commit
7804a919d1
1 changed files with 4 additions and 1 deletions
|
@ -61,7 +61,10 @@ namespace LibHac
|
|||
|
||||
private void OpenAllNcas()
|
||||
{
|
||||
IEnumerable<DirectoryEntry> 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<DirectoryEntry> files = ContentFs.OpenDirectory("/", OpenDirectoryMode.All)
|
||||
.EnumerateEntries("*.nca", SearchOptions.RecurseSubdirectories)
|
||||
.Where(x => x.Type == DirectoryEntryType.File);
|
||||
|
||||
foreach (DirectoryEntry fileEntry in files)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue