diff --git a/src/Ryujinx.Horizon/Am/Ipc/Storage/StorageChannel.cs b/src/Ryujinx.Horizon/Am/Ipc/Storage/StorageChannel.cs new file mode 100644 index 000000000..9a2846e48 --- /dev/null +++ b/src/Ryujinx.Horizon/Am/Ipc/Storage/StorageChannel.cs @@ -0,0 +1,52 @@ +using Ryujinx.Common.Logging; +using Ryujinx.Horizon.Common; +using Ryujinx.Horizon.Sdk.Am.Storage; +using Ryujinx.Horizon.Sdk.Sf; + +namespace Ryujinx.Horizon.Am.Ipc.Storage +{ + partial class StorageChannel : IStorageChannel + { + [CmifCommand(0)] + public Result Push(IStorage storage) + { + Logger.Stub?.PrintStub(LogClass.ServiceAm); + + return Result.Success; + } + + [CmifCommand(1)] + public Result Unpop(IStorage storage) + { + Logger.Stub?.PrintStub(LogClass.ServiceAm); + + return Result.Success; + } + + [CmifCommand(2)] + public Result Pop(out IStorage storage) + { + storage = new Storage(); + Logger.Stub?.PrintStub(LogClass.ServiceAm); + + return Result.Success; + } + + [CmifCommand(3)] + public Result GetPopEventHandle([CopyHandle] out int handle) + { + handle = 0; + Logger.Stub?.PrintStub(LogClass.ServiceAm); + + return Result.Success; + } + + [CmifCommand(4)] + public Result Clear() + { + Logger.Stub?.PrintStub(LogClass.ServiceAm); + + return Result.Success; + } + } +} diff --git a/src/Ryujinx.Horizon/Sdk/Am/Storage/IStorageChannel.cs b/src/Ryujinx.Horizon/Sdk/Am/Storage/IStorageChannel.cs index ae2a6c503..ff39de16e 100644 --- a/src/Ryujinx.Horizon/Sdk/Am/Storage/IStorageChannel.cs +++ b/src/Ryujinx.Horizon/Sdk/Am/Storage/IStorageChannel.cs @@ -5,10 +5,10 @@ namespace Ryujinx.Horizon.Sdk.Am.Storage { interface IStorageChannel : IServiceObject { - Result Push(IStorage arg0); - Result Unpop(IStorage arg0); - Result Pop(out IStorage arg0); - Result GetPopEventHandle(out int arg0); + Result Push(IStorage storage); + Result Unpop(IStorage storage); + Result Pop(out IStorage storage); + Result GetPopEventHandle(out int handle); Result Clear(); } }