am: Implement CreateHandleStorage and fixes (#1929)

This commit is contained in:
Ac_K 2021-01-19 03:28:35 +01:00 committed by GitHub
parent 5e1a839eaa
commit 1364f36161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 11 deletions

View file

@ -2,11 +2,13 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE
{
class IStorage : IpcService
{
public byte[] Data { get; private set; }
public bool IsReadOnly { get; private set; }
public byte[] Data { get; private set; }
public IStorage(byte[] data)
public IStorage(byte[] data, bool isReadOnly = false)
{
Data = data;
IsReadOnly = isReadOnly;
Data = data;
}
[Command(0)]