0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-25 16:45:45 +00:00
ryujinx-fork/Ryujinx.HLE/HOS/Services/Am/AppletAE/IStorage.cs

23 lines
616 B
C#
Raw Normal View History

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