mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-05 11:28:53 +02:00
Skip directories (and do not RecurseSubdirectories) when finding the icon fallback
Newer applications have a folder for ounce in the Control nca. This fixes Ryujinx trying to open a folder as a file, causing another exception, when trying to find the icon fallback.
This commit is contained in:
@@ -257,9 +257,9 @@ namespace Ryujinx.UI.App.Common
|
|||||||
}
|
}
|
||||||
catch (HorizonResultException)
|
catch (HorizonResultException)
|
||||||
{
|
{
|
||||||
foreach (DirectoryEntryEx entry in controlFs.EnumerateEntries("/", "*"))
|
foreach (DirectoryEntryEx entry in controlFs.EnumerateEntries("/", "*", SearchOptions.Default))
|
||||||
{
|
{
|
||||||
if (entry.Name == "control.nacp")
|
if (entry.Name == "control.nacp" || entry.Type == DirectoryEntryType.Directory)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user