From 682cb81c92d43c6672772e6b8eb3c7c9c50377e3 Mon Sep 17 00:00:00 2001 From: Marco Carvalho Date: Tue, 17 Dec 2024 15:07:42 -0300 Subject: [PATCH] from "params T[]" to "params ReadOnlySpan" --- src/Ryujinx.HLE/HOS/ModLoader.cs | 4 ++-- src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.HLE/HOS/ModLoader.cs b/src/Ryujinx.HLE/HOS/ModLoader.cs index a41ef08161..d8c62fc661 100644 --- a/src/Ryujinx.HLE/HOS/ModLoader.cs +++ b/src/Ryujinx.HLE/HOS/ModLoader.cs @@ -680,7 +680,7 @@ internal void ApplyNroPatches(NroExecutable nro) ApplyProgramPatches(nroPatches, 0, nro); } - internal bool ApplyNsoPatches(ulong applicationId, params IExecutable[] programs) + internal bool ApplyNsoPatches(ulong applicationId, params ReadOnlySpan programs) { IEnumerable> nsoMods = _patches.NsoPatches; @@ -744,7 +744,7 @@ internal static void EnableCheats(ulong applicationId, TamperMachine tamperMachi } } - private static bool ApplyProgramPatches(IEnumerable> mods, int protectedOffset, params IExecutable[] programs) + private static bool ApplyProgramPatches(IEnumerable> mods, int protectedOffset, params ReadOnlySpan programs) { int count = 0; diff --git a/src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs b/src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs index 6cb6dfefed..e4286ae90f 100644 --- a/src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs +++ b/src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs @@ -231,7 +231,7 @@ public static ProcessResult LoadNsos( ulong programId, byte programIndex, byte[] arguments = null, - params IExecutable[] executables) + params ReadOnlySpan executables) { context.Device.System.ServiceTable.WaitServicesReady();