This commit is contained in:
Lordmau5 2018-07-12 00:58:17 +00:00 committed by GitHub
commit 01a82974bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,11 +10,15 @@ namespace Ryujinx.HLE.OsHle.Services.Acc
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
private byte[] profile_image = { };
public IProfile()
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 1, GetBase }
{ 1, GetBase },
{ 10, GetImageSize },
{ 11, LoadImage }
};
}
@ -32,5 +36,26 @@ namespace Ryujinx.HLE.OsHle.Services.Acc
return 0;
}
public long GetImageSize(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceAcc, "Stubbed.");
Context.ResponseData.Write(profile_image.Length);
return 0;
}
public long LoadImage(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceAcc, "Stubbed.");
(long Position, long Size) = Context.Request.GetBufferType0x22();
Context.ResponseData.Write(profile_image.Length);
Context.Memory.WriteBytes(Position, profile_image);
return 0;
}
}
}