This commit is contained in:
Isaac Marovitz 2024-02-15 12:45:23 -05:00
parent 59f3132b63
commit c1c7f455fa
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
2 changed files with 56 additions and 4 deletions

View file

@ -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;
}
}
}

View file

@ -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();
}
}