pctl: refactoring IParentalControlServiceFactory and IParentalControl… (#1219)

* pctl: refactoring IParentalControlServiceFactory and IParentalControlService call

Our previous implementation was totally guessed. Now it's implemented according to RE, even if it's stubbed because we will not support Parental Control for now.

* unknownFlag > permissionFlag
This commit is contained in:
Ac_K 2020-05-15 03:14:38 +02:00 committed by GitHub
parent 430a48338b
commit b2e5855928
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 82 additions and 19 deletions

View file

@ -0,0 +1,14 @@
namespace Ryujinx.HLE.HOS.Services.Pctl
{
enum ResultCode
{
ModuleId = 142,
ErrorCodeShift = 9,
Success = 0,
FreeCommunicationDisabled = (101 << ErrorCodeShift) | ModuleId,
InvalidPid = (131 << ErrorCodeShift) | ModuleId,
PermissionDenied = (133 << ErrorCodeShift) | ModuleId
}
}