aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2022-08-24 23:41:13 +0200
committerMary-nyan <thog@protonmail.com>2022-08-25 23:18:37 +0200
commitd9aa15eb243bc1b40892c9fcfcbb0e9ef66cfa63 (patch)
treebe520fd140c2d4dc1b626ac2eb436a35691eb339
parent12c89a61f97c6892b4546d2a374fd732e04a2eb0 (diff)
pctl: Implement EndFreeCommunication1.1.232
This PR Implement `EndFreeCommunication` (checked by RE). Nothing more. Closes #2420
-rw-r--r--Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs b/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs
index 1ccf0fb4..e0017808 100644
--- a/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs
+++ b/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs
@@ -14,11 +14,14 @@ namespace Ryujinx.HLE.HOS.Services.Pctl.ParentalControlServiceFactory
private ParentalControlFlagValue _parentalControlFlag;
private int[] _ratingAge;
+#pragma warning disable CS0414
// TODO: Find where they are set.
private bool _restrictionEnabled = false;
private bool _featuresRestriction = false;
+ private bool _freeCommunicationEnabled = false;
private bool _stereoVisionRestrictionConfigurable = true;
private bool _stereoVisionRestriction = false;
+#pragma warning restore CS0414
public IParentalControlService(ServiceCtx context, ulong pid, bool withInitialize, int permissionFlag)
{
@@ -88,13 +91,22 @@ namespace Ryujinx.HLE.HOS.Services.Pctl.ParentalControlServiceFactory
return ResultCode.FreeCommunicationDisabled;
}
- // NOTE: This sets an internal field to true. Usage have to be determined.
+ _freeCommunicationEnabled = true;
Logger.Stub?.PrintStub(LogClass.ServicePctl);
return ResultCode.Success;
}
+ [CommandHipc(1017)] // 10.0.0+
+ // EndFreeCommunication()
+ public ResultCode EndFreeCommunication(ServiceCtx context)
+ {
+ _freeCommunicationEnabled = false;
+
+ return ResultCode.Success;
+ }
+
[CommandHipc(1013)] // 4.0.0+
// ConfirmStereoVisionPermission()
public ResultCode ConfirmStereoVisionPermission(ServiceCtx context)