Skip to content

Commit

Permalink
from "params T[]" to "params ReadOnlySpan<T>"
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-carvalho authored and GreemDev committed Dec 20, 2024
1 parent 7fff58f commit 682cb81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Ryujinx.HLE/HOS/ModLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IExecutable> programs)
{
IEnumerable<Mod<DirectoryInfo>> nsoMods = _patches.NsoPatches;

Expand Down Expand Up @@ -744,7 +744,7 @@ internal static void EnableCheats(ulong applicationId, TamperMachine tamperMachi
}
}

private static bool ApplyProgramPatches(IEnumerable<Mod<DirectoryInfo>> mods, int protectedOffset, params IExecutable[] programs)
private static bool ApplyProgramPatches(IEnumerable<Mod<DirectoryInfo>> mods, int protectedOffset, params ReadOnlySpan<IExecutable> programs)
{
int count = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public static ProcessResult LoadNsos(
ulong programId,
byte programIndex,
byte[] arguments = null,
params IExecutable[] executables)
params ReadOnlySpan<IExecutable> executables)
{
context.Device.System.ServiceTable.WaitServicesReady();

Expand Down

0 comments on commit 682cb81

Please sign in to comment.