mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 11:56:41 +00:00
23 lines
No EOL
616 B
C#
23 lines
No EOL
616 B
C#
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;
|
|
}
|
|
|
|
[CommandCmif(0)]
|
|
// Open() -> object<nn::am::service::IStorageAccessor>
|
|
public ResultCode Open(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IStorageAccessor(this));
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |