Parameter Names

This commit is contained in:
Isaac Marovitz 2024-02-15 12:42:09 -05:00
parent ed5c8301ab
commit 59f3132b63
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
4 changed files with 9 additions and 8 deletions

View file

@ -2,6 +2,7 @@ using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Storage; using Ryujinx.Horizon.Sdk.Am.Storage;
using Ryujinx.Horizon.Sdk.Sf; using Ryujinx.Horizon.Sdk.Sf;
using Ryujinx.Horizon.Sdk.Sf.Hipc;
using System; using System;
namespace Ryujinx.Horizon.Am.Ipc.Storage namespace Ryujinx.Horizon.Am.Ipc.Storage
@ -18,7 +19,7 @@ namespace Ryujinx.Horizon.Am.Ipc.Storage
} }
[CmifCommand(10)] [CmifCommand(10)]
public Result Write(long arg0, ReadOnlySpan<byte> span) public Result Write(long offset, [Buffer(HipcBufferFlags.In | HipcBufferFlags.AutoSelect)] ReadOnlySpan<byte> span)
{ {
Logger.Stub?.PrintStub(LogClass.ServiceAm); Logger.Stub?.PrintStub(LogClass.ServiceAm);
@ -26,7 +27,7 @@ namespace Ryujinx.Horizon.Am.Ipc.Storage
} }
[CmifCommand(11)] [CmifCommand(11)]
public Result Read(long arg0, ReadOnlySpan<byte> span) public Result Read(long offset, [Buffer(HipcBufferFlags.Out | HipcBufferFlags.AutoSelect)] Span<byte> span)
{ {
Logger.Stub?.PrintStub(LogClass.ServiceAm); Logger.Stub?.PrintStub(LogClass.ServiceAm);

View file

@ -17,10 +17,10 @@ namespace Ryujinx.Horizon.Am.Ipc.Storage
} }
[CmifCommand(1)] [CmifCommand(1)]
public Result GetHandle(out int arg0, out ulong arg1) public Result GetHandle([CopyHandle] out int handle, out ulong size)
{ {
arg0 = 0; handle = 0;
arg1 = 0; size = 0;
Logger.Stub?.PrintStub(LogClass.ServiceAm); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success; return Result.Success;

View file

@ -7,7 +7,7 @@ namespace Ryujinx.Horizon.Sdk.Am.Storage
interface IStorageAccessor : IServiceObject interface IStorageAccessor : IServiceObject
{ {
Result GetSize(out long size); Result GetSize(out long size);
Result Write(long arg0, ReadOnlySpan<byte> span); Result Write(long offset, ReadOnlySpan<byte> span);
Result Read(long arg0, ReadOnlySpan<byte> span); Result Read(long offset, Span<byte> span);
} }
} }

View file

@ -6,6 +6,6 @@ namespace Ryujinx.Horizon.Sdk.Am.Storage
interface ITransferStorageAccessor : IServiceObject interface ITransferStorageAccessor : IServiceObject
{ {
Result GetSize(out long size); Result GetSize(out long size);
Result GetHandle(out int arg0, out ulong arg1); Result GetHandle(out int handle, out ulong size);
} }
} }