mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
pctl: Implement EndFreeCommunication
This PR Implement `EndFreeCommunication` (checked by RE). Nothing more. Closes #2420
This commit is contained in:
parent
12c89a61f9
commit
d9aa15eb24
1 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue