Ryujinx/Ryujinx.HLE/HOS/Services/Am/IStorage.cs

21 lines
451 B
C#
Raw Normal View History

namespace Ryujinx.HLE.HOS.Services.Am
{
class IStorage : IpcService
{
public byte[] Data { get; private set; }
public IStorage(byte[] data)
{
Data = data;
}
[Command(0)]
// Open() -> object<nn::am::service::IStorageAccessor>
public long Open(ServiceCtx context)
{
MakeObject(context, new IStorageAccessor(this));
return 0;
}
}
}