From f29300a3c6b55205bd6029d03ad178b771104aa1 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 14 Jul 2018 00:52:32 +0200 Subject: [PATCH] Link ISslContext --- Ryujinx.HLE/OsHle/Services/Ssl/ISslContext.cs | 21 +++++++++++++++++++ Ryujinx.HLE/OsHle/Services/Ssl/ISslService.cs | 10 +++++++++ 2 files changed, 31 insertions(+) create mode 100644 Ryujinx.HLE/OsHle/Services/Ssl/ISslContext.cs diff --git a/Ryujinx.HLE/OsHle/Services/Ssl/ISslContext.cs b/Ryujinx.HLE/OsHle/Services/Ssl/ISslContext.cs new file mode 100644 index 000000000..7d837bdd1 --- /dev/null +++ b/Ryujinx.HLE/OsHle/Services/Ssl/ISslContext.cs @@ -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 m_Commands; + + public override IReadOnlyDictionary Commands => m_Commands; + + public ISslContext() + { + m_Commands = new Dictionary() + { + + }; + } + } +} \ No newline at end of file diff --git a/Ryujinx.HLE/OsHle/Services/Ssl/ISslService.cs b/Ryujinx.HLE/OsHle/Services/Ssl/ISslService.cs index 0bf4c1446..dd18ab5e5 100644 --- a/Ryujinx.HLE/OsHle/Services/Ssl/ISslService.cs +++ b/Ryujinx.HLE/OsHle/Services/Ssl/ISslService.cs @@ -14,9 +14,19 @@ namespace Ryujinx.HLE.OsHle.Services.Ssl { m_Commands = new Dictionary() { + { 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) {