mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 04:39:11 +00:00
Storage
This commit is contained in:
parent
59f3132b63
commit
c1c7f455fa
2 changed files with 56 additions and 4 deletions
52
src/Ryujinx.Horizon/Am/Ipc/Storage/StorageChannel.cs
Normal file
52
src/Ryujinx.Horizon/Am/Ipc/Storage/StorageChannel.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,10 +5,10 @@ namespace Ryujinx.Horizon.Sdk.Am.Storage
|
||||||
{
|
{
|
||||||
interface IStorageChannel : IServiceObject
|
interface IStorageChannel : IServiceObject
|
||||||
{
|
{
|
||||||
Result Push(IStorage arg0);
|
Result Push(IStorage storage);
|
||||||
Result Unpop(IStorage arg0);
|
Result Unpop(IStorage storage);
|
||||||
Result Pop(out IStorage arg0);
|
Result Pop(out IStorage storage);
|
||||||
Result GetPopEventHandle(out int arg0);
|
Result GetPopEventHandle(out int handle);
|
||||||
Result Clear();
|
Result Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue