Link ISslContext

This commit is contained in:
Unknown 2018-07-14 00:52:32 +02:00
parent 494f8f0248
commit f29300a3c6
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,21 @@
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Ipc;
using System.Collections.Generic;
namespace Ryujinx.HLE.OsHle.Services.Ssl
{
class ISslContext : IpcService
{
private Dictionary<int, ServiceProcessRequest> m_Commands;
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
public ISslContext()
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
};
}
}
}

View file

@ -14,9 +14,19 @@ namespace Ryujinx.HLE.OsHle.Services.Ssl
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, CreateContext },
{ 5, SetInterfaceVersion }
};
}
public long CreateContext(ServiceCtx Context)
{
long Id = Context.RequestData.ReadInt64();
MakeObject(Context, new ISslContext());
return 0;
}
public long SetInterfaceVersion(ServiceCtx Context)
{