diff --git a/Ryujinx.Ui.Common/App/ApplicationLibrary.cs b/Ryujinx.Ui.Common/App/ApplicationLibrary.cs index 8686383e..66cb7c73 100644 --- a/Ryujinx.Ui.Common/App/ApplicationLibrary.cs +++ b/Ryujinx.Ui.Common/App/ApplicationLibrary.cs @@ -116,11 +116,13 @@ namespace Ryujinx.Ui.App.Common return; } - string extension = Path.GetExtension(app).ToLower(); + var fileInfo = new FileInfo(app); + string extension = fileInfo.Extension.ToLower(); - if (!File.GetAttributes(app).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") { - applications.Add(app); + var fullPath = fileInfo.ResolveLinkTarget(true)?.FullName ?? fileInfo.FullName; + applications.Add(fullPath); numApplicationsFound++; } } @@ -904,4 +906,5 @@ namespace Ryujinx.Ui.App.Common return (null, null); } } -} \ No newline at end of file +} +