misc: chore: Use collection expressions (part 2)

This commit is contained in:
KeatonTheBot
2025-03-10 21:32:01 -05:00
parent c923c0043a
commit 340ec79e9f
176 changed files with 308 additions and 308 deletions
@@ -661,7 +661,7 @@ namespace Ryujinx.UI.App.Common
_applications.Clear();
// Builds the applications list with paths to found applications
List<string> applicationPaths = new();
List<string> applicationPaths = [];
try
{
@@ -854,7 +854,7 @@ namespace Ryujinx.UI.App.Common
{
_cancellationToken = new CancellationTokenSource();
List<string> dlcPaths = new();
List<string> dlcPaths = [];
int newDlcLoaded = 0;
numDlcRemoved = 0;
@@ -967,7 +967,7 @@ namespace Ryujinx.UI.App.Common
{
_cancellationToken = new CancellationTokenSource();
List<string> updatePaths = new();
List<string> updatePaths = [];
int numUpdatesLoaded = 0;
numUpdatesRemoved = 0;
@@ -23,7 +23,7 @@ namespace Ryujinx.UI.Common.Helper
public static void ParseArguments(string[] args)
{
List<string> arguments = new();
List<string> arguments = [];
// Parse Arguments.
for (int i = 0; i < args.Length; ++i)
@@ -45,7 +45,7 @@ namespace Ryujinx.UI.Common.Helper
public static void SaveDownloadableContentsJson(VirtualFileSystem vfs, ulong applicationIdBase, List<(DownloadableContentModel, bool IsEnabled)> dlcs)
{
DownloadableContentContainer container = default;
List<DownloadableContentContainer> downloadableContentContainerList = new();
List<DownloadableContentContainer> downloadableContentContainerList = [];
foreach ((DownloadableContentModel dlc, bool isEnabled) in dlcs)
{