mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-28 01:44:04 +00:00
ApplicationLibrary: Skip invalid symlinks (#6004)
This commit is contained in:
parent
5ce47bfe8c
commit
93a24afaaa
1 changed files with 7 additions and 0 deletions
|
@ -136,6 +136,13 @@ namespace Ryujinx.Ui.App.Common
|
||||||
if (!fileInfo.Attributes.HasFlag(FileAttributes.Hidden) && extension is ".nsp" or ".pfs0" or ".xci" or ".nca" or ".nro" or ".nso")
|
if (!fileInfo.Attributes.HasFlag(FileAttributes.Hidden) && extension is ".nsp" or ".pfs0" or ".xci" or ".nca" or ".nro" or ".nso")
|
||||||
{
|
{
|
||||||
var fullPath = fileInfo.ResolveLinkTarget(true)?.FullName ?? fileInfo.FullName;
|
var fullPath = fileInfo.ResolveLinkTarget(true)?.FullName ?? fileInfo.FullName;
|
||||||
|
|
||||||
|
if (!File.Exists(fullPath))
|
||||||
|
{
|
||||||
|
Logger.Warning?.Print(LogClass.Application, $"Skipping invalid symlink: {fileInfo.FullName}");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
applications.Add(fullPath);
|
applications.Add(fullPath);
|
||||||
numApplicationsFound++;
|
numApplicationsFound++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue