aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/Loaders/Processes/ProcessLoader.cs
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2023-06-22 20:42:23 -0300
committerGitHub <noreply@github.com>2023-06-23 01:42:23 +0200
commitefbd29463d2eb38cd177818a170f245556852f17 (patch)
tree96734d6bb6521ca3ab3c733cce4627a030393911 /src/Ryujinx.HLE/Loaders/Processes/ProcessLoader.cs
parent7608cb37ab798db49f33f3870f2f84fbe0809266 (diff)
"Find" method should be used instead of the "FirstOrDefault" extension (#5344)1.1.902
Diffstat (limited to 'src/Ryujinx.HLE/Loaders/Processes/ProcessLoader.cs')
-rw-r--r--src/Ryujinx.HLE/Loaders/Processes/ProcessLoader.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ryujinx.HLE/Loaders/Processes/ProcessLoader.cs b/src/Ryujinx.HLE/Loaders/Processes/ProcessLoader.cs
index 0eedc213..f391f965 100644
--- a/src/Ryujinx.HLE/Loaders/Processes/ProcessLoader.cs
+++ b/src/Ryujinx.HLE/Loaders/Processes/ProcessLoader.cs
@@ -9,6 +9,7 @@ using LibHac.Tools.FsSystem.NcaUtils;
using Ryujinx.Common.Logging;
using Ryujinx.HLE.Loaders.Executables;
using Ryujinx.HLE.Loaders.Processes.Extensions;
+using System;
using System.Collections.Concurrent;
using System.IO;
using System.Linq;
@@ -176,7 +177,7 @@ namespace Ryujinx.HLE.Loaders.Processes
if (string.IsNullOrWhiteSpace(programName))
{
- programName = nacpData.Value.Title.ItemsRo.ToArray().FirstOrDefault(x => x.Name[0] != 0).NameString.ToString();
+ programName = Array.Find(nacpData.Value.Title.ItemsRo.ToArray(), x => x.Name[0] != 0).NameString.ToString();
}
if (nacpData.Value.PresenceGroupId != 0)