This commit is contained in:
greggameplayer 2018-08-14 15:13:59 +00:00 committed by GitHub
commit b0b643b0de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,20 @@
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,21 @@ namespace Ryujinx.HLE.OsHle.Services.Ssl
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, CreateContext },
{ 5, SetInterfaceVersion }
};
}
public long CreateContext(ServiceCtx Context)
{
int Version = Context.RequestData.ReadInt32();
long Unknown = Context.RequestData.ReadInt64();
MakeObject(Context, new ISslContext());
return 0;
}
public long SetInterfaceVersion(ServiceCtx Context)
{
@ -27,4 +39,4 @@ namespace Ryujinx.HLE.OsHle.Services.Ssl
return 0;
}
}
}
}