mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-27 19:06:23 +02:00
28 lines
681 B
C#
28 lines
681 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;
|
|
}
|
|
|
|
public byte[] GetData()
|
|
{
|
|
return Data;
|
|
}
|
|
|
|
[CommandCmif(0)]
|
|
// Open() -> object<nn::am::service::IStorageAccessor>
|
|
public ResultCode Open(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IStorageAccessor(this));
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
}
|