from "params T[]" to "params ReadOnlySpan<T>"
This commit is contained in:
parent
7fff58fe54
commit
682cb81c92
@ -680,7 +680,7 @@ namespace Ryujinx.HLE.HOS
|
|||||||
ApplyProgramPatches(nroPatches, 0, 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;
|
IEnumerable<Mod<DirectoryInfo>> nsoMods = _patches.NsoPatches;
|
||||||
|
|
||||||
@ -744,7 +744,7 @@ namespace Ryujinx.HLE.HOS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
int count = 0;
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ namespace Ryujinx.HLE.Loaders.Processes
|
|||||||
ulong programId,
|
ulong programId,
|
||||||
byte programIndex,
|
byte programIndex,
|
||||||
byte[] arguments = null,
|
byte[] arguments = null,
|
||||||
params IExecutable[] executables)
|
params ReadOnlySpan<IExecutable> executables)
|
||||||
{
|
{
|
||||||
context.Device.System.ServiceTable.WaitServicesReady();
|
context.Device.System.ServiceTable.WaitServicesReady();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user