ngct: Fix services and stub calls (#1756)

This commit is contained in:
Ac_K 2020-12-10 03:08:28 +01:00 committed by GitHub
parent c9b6be1ef8
commit c0b9ac6653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 139 additions and 9 deletions

View file

@ -0,0 +1,22 @@
namespace Ryujinx.HLE.HOS.Services.Ngct
{
[Service("ngct:s")] // 9.0.0+
class IServiceWithManagementApi : IpcService
{
public IServiceWithManagementApi(ServiceCtx context) { }
[Command(0)]
// Match(buffer<string, 9>) -> b8
public ResultCode Match(ServiceCtx context)
{
return NgctServer.Match(context);
}
[Command(1)]
// Filter(buffer<string, 9>) -> buffer<filtered_string, 10>
public ResultCode Filter(ServiceCtx context)
{
return NgctServer.Filter(context);
}
}
}