diff --git a/src/Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs b/src/Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs index 8f38f293f..3d8fb5d51 100644 --- a/src/Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs +++ b/src/Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs @@ -17,7 +17,7 @@ namespace Ryujinx.HLE.HOS.Services.Ssl public ISslService(ServiceCtx context) { } [CommandCmif(0)] - // CreateContext(nn::ssl::sf::SslVersion, u64, pid) -> object + // CreateContext(nn::ssl::sf::SslVersion, u64 pid_placeholder, pid) -> object public ResultCode CreateContext(ServiceCtx context) { SslVersion sslVersion = (SslVersion)context.RequestData.ReadUInt32(); @@ -126,14 +126,18 @@ namespace Ryujinx.HLE.HOS.Services.Ssl } [CommandCmif(100)] - // CreateContextForSystem(u64 pid, nn::ssl::sf::SslVersion, u64) + // CreateContextForSystem(nn::ssl::sf::SslVersion, u64 pid_placeholder, pid) -> object public ResultCode CreateContextForSystem(ServiceCtx context) { - ulong pid = context.RequestData.ReadUInt64(); SslVersion sslVersion = (SslVersion)context.RequestData.ReadUInt32(); +#pragma warning disable IDE0059 // Remove unnecessary value assignment ulong pidPlaceholder = context.RequestData.ReadUInt64(); +#pragma warning restore IDE0059 - Logger.Stub?.PrintStub(LogClass.ServiceSsl, new { pid, sslVersion, pidPlaceholder }); + // Note: We use ISslContext here instead of ISslContextForSystem class because Ryujinx implements both in one class. + MakeObject(context, new ISslContext(context.Request.HandleDesc.PId, sslVersion)); + + Logger.Stub?.PrintStub(LogClass.ServiceSsl, new { sslVersion }); return ResultCode.Success; }