Skip non-existent files and bad symlinks when loading applications
This commit is contained in:
parent
62f64a2cb7
commit
90442c9dbf
1 changed files with 11 additions and 3 deletions
|
@ -537,10 +537,18 @@ namespace Ryujinx.UI.App.Common
|
|||
}
|
||||
|
||||
var fileInfo = new FileInfo(app);
|
||||
var fullPath = fileInfo.ResolveLinkTarget(true)?.FullName ?? fileInfo.FullName;
|
||||
|
||||
applicationPaths.Add(fullPath);
|
||||
numApplicationsFound++;
|
||||
try
|
||||
{
|
||||
var fullPath = fileInfo.ResolveLinkTarget(true)?.FullName ?? fileInfo.FullName;
|
||||
|
||||
applicationPaths.Add(fullPath);
|
||||
numApplicationsFound++;
|
||||
}
|
||||
catch (IOException exception)
|
||||
{
|
||||
Logger.Warning?.Print(LogClass.Application, $"Failed to resolve the full path to file: \"{app}\" Error: {exception}");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
|
|
Loading…
Add table
Reference in a new issue