From f65085548316a03f591e2f0000729b3904321014 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Mon, 9 Sep 2019 01:46:57 +0200 Subject: [PATCH] Use Array instead of List --- .../HOS/Services/Bcat/IDeliveryCacheStorageService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Bcat/IDeliveryCacheStorageService.cs b/Ryujinx.HLE/HOS/Services/Bcat/IDeliveryCacheStorageService.cs index 371fbb9916..bc326bba45 100644 --- a/Ryujinx.HLE/HOS/Services/Bcat/IDeliveryCacheStorageService.cs +++ b/Ryujinx.HLE/HOS/Services/Bcat/IDeliveryCacheStorageService.cs @@ -10,7 +10,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat private const int DeliveryCacheDirectoriesLimit = 100; private const int DeliveryCacheDirectoryNameLength = 32; - private List _deliveryCacheDirectories = new List(); + private string[] _deliveryCacheDirectories = new string[0]; public IDeliveryCacheStorageService(ServiceCtx context, ApplicationLaunchProperty applicationLaunchProperty) { @@ -24,7 +24,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat long outputPosition = context.Request.ReceiveBuff[0].Position; long outputSize = context.Request.ReceiveBuff[0].Size; - for (int index = 0; index < _deliveryCacheDirectories.Count; index++) + for (int index = 0; index < _deliveryCacheDirectories.Length; index++) { if (index == DeliveryCacheDirectoriesLimit - 1) { @@ -40,7 +40,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat context.Memory.WriteBytes(outputPosition + index * DeliveryCacheDirectoryNameLength, directoryNameBuffer); } - context.ResponseData.Write(_deliveryCacheDirectories.Count); + context.ResponseData.Write(_deliveryCacheDirectories.Length); return ResultCode.Success; }