mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-27 04:51:21 -08:00
4ad3936afd
* refactoring result codes - Add a main enum who can handle some orphalin result codes and the default `ResultCode.Success` one. - Add sub-enum by services when it's needed. - Remove some empty line. - Recast all service calls to ResultCode. - Remove some unneeded static declaration. - Delete unused `NvHelper` class. * NvResult is back * Fix
35 lines
1002 B
C#
35 lines
1002 B
C#
using Ryujinx.Common.Logging;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ssl
|
|
{
|
|
[Service("ssl")]
|
|
class ISslService : IpcService
|
|
{
|
|
public ISslService(ServiceCtx context) { }
|
|
|
|
[Command(0)]
|
|
// CreateContext(nn::ssl::sf::SslVersion, u64, pid) -> object<nn::ssl::sf::ISslContext>
|
|
public ResultCode CreateContext(ServiceCtx context)
|
|
{
|
|
int sslVersion = context.RequestData.ReadInt32();
|
|
long unknown = context.RequestData.ReadInt64();
|
|
|
|
Logger.PrintStub(LogClass.ServiceSsl, new { sslVersion, unknown });
|
|
|
|
MakeObject(context, new ISslContext());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(5)]
|
|
// SetInterfaceVersion(u32)
|
|
public ResultCode SetInterfaceVersion(ServiceCtx context)
|
|
{
|
|
int version = context.RequestData.ReadInt32();
|
|
|
|
Logger.PrintStub(LogClass.ServiceSsl, new { version });
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |