aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2020-05-15 03:14:38 +0200
committerGitHub <noreply@github.com>2020-05-15 03:14:38 +0200
commitb2e58559283e184bc85bbb473511a7c8349c0fe5 (patch)
tree5e59ff5cfb67cdf3fd4c431ba3e50286a7f38ff1 /Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
parent430a48338b5a0531ed2e675d03f30f0409cf6588 (diff)
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
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs b/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
new file mode 100644
index 00000000..bf58628c
--- /dev/null
+++ b/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
@@ -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
+ }
+}