mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-12 10:37:06 +00: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:
parent
afa1ab95c2
commit
f30d832847
1 changed files with 2 additions and 2 deletions
|
|
@ -275,9 +275,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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue