mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-26 00:00:07 +02:00
misc: chore: Use collection expressions (part 2)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user