2018-10-17 17:15:50 +00:00
|
|
|
using Ryujinx.Common.Logging;
|
2020-05-15 01:14:38 +00:00
|
|
|
using Ryujinx.HLE.HOS.Services.Arp;
|
|
|
|
using System;
|
2018-02-10 00:14:55 +00:00
|
|
|
|
2022-02-26 23:52:25 +00:00
|
|
|
using static LibHac.Ns.ApplicationControlProperty;
|
|
|
|
|
2019-09-19 00:45:11 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Pctl.ParentalControlServiceFactory
|
2018-02-10 00:14:55 +00:00
|
|
|
{
|
2018-03-19 18:58:46 +00:00
|
|
|
class IParentalControlService : IpcService
|
2018-02-10 00:14:55 +00:00
|
|
|
{
|
2022-02-09 20:18:07 +00:00
|
|
|
private ulong _pid;
|
2021-01-10 20:26:59 +00:00
|
|
|
private int _permissionFlag;
|
|
|
|
private ulong _titleId;
|
|
|
|
private ParentalControlFlagValue _parentalControlFlag;
|
|
|
|
private int[] _ratingAge;
|
2020-11-24 20:19:06 +00:00
|
|
|
|
2022-08-24 21:41:13 +00:00
|
|
|
#pragma warning disable CS0414
|
2020-11-24 20:19:06 +00:00
|
|
|
// TODO: Find where they are set.
|
2021-01-10 20:26:59 +00:00
|
|
|
private bool _restrictionEnabled = false;
|
|
|
|
private bool _featuresRestriction = false;
|
2022-08-24 21:41:13 +00:00
|
|
|
private bool _freeCommunicationEnabled = false;
|
2021-01-10 20:26:59 +00:00
|
|
|
private bool _stereoVisionRestrictionConfigurable = true;
|
|
|
|
private bool _stereoVisionRestriction = false;
|
2022-08-24 21:41:13 +00:00
|
|
|
#pragma warning restore CS0414
|
2018-06-12 18:28:45 +00:00
|
|
|
|
2022-02-09 20:18:07 +00:00
|
|
|
public IParentalControlService(ServiceCtx context, ulong pid, bool withInitialize, int permissionFlag)
|
2018-02-10 00:14:55 +00:00
|
|
|
{
|
2021-06-29 16:57:06 +00:00
|
|
|
_pid = pid;
|
2020-05-15 01:14:38 +00:00
|
|
|
_permissionFlag = permissionFlag;
|
|
|
|
|
|
|
|
if (withInitialize)
|
|
|
|
{
|
|
|
|
Initialize(context);
|
|
|
|
}
|
2018-02-10 00:14:55 +00:00
|
|
|
}
|
2018-06-12 18:28:45 +00:00
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1)] // 4.0.0+
|
2019-07-12 01:13:43 +00:00
|
|
|
// Initialize()
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode Initialize(ServiceCtx context)
|
2018-06-12 18:28:45 +00:00
|
|
|
{
|
2020-05-15 01:14:38 +00:00
|
|
|
if ((_permissionFlag & 0x8001) == 0)
|
2018-06-13 00:51:59 +00:00
|
|
|
{
|
2020-05-15 01:14:38 +00:00
|
|
|
return ResultCode.PermissionDenied;
|
2018-06-13 00:51:59 +00:00
|
|
|
}
|
2020-05-15 01:14:38 +00:00
|
|
|
|
|
|
|
ResultCode resultCode = ResultCode.InvalidPid;
|
|
|
|
|
2021-06-29 16:57:06 +00:00
|
|
|
if (_pid != 0)
|
2018-06-13 00:51:59 +00:00
|
|
|
{
|
2020-05-15 01:14:38 +00:00
|
|
|
if ((_permissionFlag & 0x40) == 0)
|
|
|
|
{
|
|
|
|
ulong titleId = ApplicationLaunchProperty.GetByPid(context).TitleId;
|
|
|
|
|
|
|
|
if (titleId != 0)
|
|
|
|
{
|
|
|
|
_titleId = titleId;
|
|
|
|
|
|
|
|
// TODO: Call nn::arp::GetApplicationControlProperty here when implemented, if it return ResultCode.Success we assign fields.
|
2023-03-31 19:16:46 +00:00
|
|
|
_ratingAge = Array.ConvertAll(context.Device.Processes.ActiveApplication.ApplicationControlProperties.RatingAge.ItemsRo.ToArray(), Convert.ToInt32);
|
|
|
|
_parentalControlFlag = context.Device.Processes.ActiveApplication.ApplicationControlProperties.ParentalControlFlag;
|
2020-05-15 01:14:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (_titleId != 0)
|
|
|
|
{
|
|
|
|
// TODO: Service store some private fields in another static object.
|
|
|
|
|
|
|
|
if ((_permissionFlag & 0x8040) == 0)
|
|
|
|
{
|
|
|
|
// TODO: Service store TitleId and FreeCommunicationEnabled in another static object.
|
|
|
|
// When it's done it signal an event in this static object.
|
2020-08-03 23:32:53 +00:00
|
|
|
Logger.Stub?.PrintStub(LogClass.ServicePctl);
|
2020-05-15 01:14:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resultCode = ResultCode.Success;
|
2018-06-13 00:51:59 +00:00
|
|
|
}
|
2018-06-12 18:28:45 +00:00
|
|
|
|
2020-05-15 01:14:38 +00:00
|
|
|
return resultCode;
|
2018-06-12 18:28:45 +00:00
|
|
|
}
|
2019-04-22 06:54:47 +00:00
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1001)]
|
2019-07-12 01:13:43 +00:00
|
|
|
// CheckFreeCommunicationPermission()
|
2019-07-14 19:04:38 +00:00
|
|
|
public ResultCode CheckFreeCommunicationPermission(ServiceCtx context)
|
2019-04-22 06:54:47 +00:00
|
|
|
{
|
2021-01-10 20:26:59 +00:00
|
|
|
if (_parentalControlFlag == ParentalControlFlagValue.FreeCommunication && _restrictionEnabled)
|
2020-05-15 01:14:38 +00:00
|
|
|
{
|
2021-01-10 20:26:59 +00:00
|
|
|
// TODO: It seems to checks if an entry exists in the FreeCommunicationApplicationList using the TitleId.
|
|
|
|
// Then it returns FreeCommunicationDisabled if the entry doesn't exist.
|
|
|
|
|
2020-05-15 01:14:38 +00:00
|
|
|
return ResultCode.FreeCommunicationDisabled;
|
|
|
|
}
|
|
|
|
|
2022-08-24 21:41:13 +00:00
|
|
|
_freeCommunicationEnabled = true;
|
2021-01-10 20:26:59 +00:00
|
|
|
|
2020-11-24 20:19:06 +00:00
|
|
|
Logger.Stub?.PrintStub(LogClass.ServicePctl);
|
|
|
|
|
2019-07-14 19:04:38 +00:00
|
|
|
return ResultCode.Success;
|
2019-04-22 06:54:47 +00:00
|
|
|
}
|
am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering
This PR enable VR rendering on games which support it through the Toy-Con VR Goggles.
Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved.
Everything is implemented accordingly to RE:
- am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx.
- lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled.
- pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted.
- hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now.
Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games.
* Fix permission flag check
* Address gdkchan feedback
2020-11-15 21:30:20 +00:00
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1017)] // 10.0.0+
|
2022-08-24 21:41:13 +00:00
|
|
|
// EndFreeCommunication()
|
|
|
|
public ResultCode EndFreeCommunication(ServiceCtx context)
|
|
|
|
{
|
|
|
|
_freeCommunicationEnabled = false;
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1013)] // 4.0.0+
|
am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering
This PR enable VR rendering on games which support it through the Toy-Con VR Goggles.
Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved.
Everything is implemented accordingly to RE:
- am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx.
- lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled.
- pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted.
- hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now.
Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games.
* Fix permission flag check
* Address gdkchan feedback
2020-11-15 21:30:20 +00:00
|
|
|
// ConfirmStereoVisionPermission()
|
|
|
|
public ResultCode ConfirmStereoVisionPermission(ServiceCtx context)
|
|
|
|
{
|
|
|
|
return IsStereoVisionPermittedImpl();
|
|
|
|
}
|
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1018)]
|
2021-01-10 20:26:59 +00:00
|
|
|
// IsFreeCommunicationAvailable()
|
|
|
|
public ResultCode IsFreeCommunicationAvailable(ServiceCtx context)
|
|
|
|
{
|
|
|
|
if (_parentalControlFlag == ParentalControlFlagValue.FreeCommunication && _restrictionEnabled)
|
|
|
|
{
|
|
|
|
// TODO: It seems to checks if an entry exists in the FreeCommunicationApplicationList using the TitleId.
|
|
|
|
// Then it returns FreeCommunicationDisabled if the entry doesn't exist.
|
|
|
|
|
|
|
|
return ResultCode.FreeCommunicationDisabled;
|
|
|
|
}
|
|
|
|
|
|
|
|
Logger.Stub?.PrintStub(LogClass.ServicePctl);
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1031)]
|
2020-11-24 20:19:06 +00:00
|
|
|
// IsRestrictionEnabled() -> b8
|
|
|
|
public ResultCode IsRestrictionEnabled(ServiceCtx context)
|
|
|
|
{
|
|
|
|
if ((_permissionFlag & 0x140) == 0)
|
|
|
|
{
|
|
|
|
return ResultCode.PermissionDenied;
|
|
|
|
}
|
|
|
|
|
|
|
|
context.ResponseData.Write(_restrictionEnabled);
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1061)] // 4.0.0+
|
am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering
This PR enable VR rendering on games which support it through the Toy-Con VR Goggles.
Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved.
Everything is implemented accordingly to RE:
- am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx.
- lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled.
- pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted.
- hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now.
Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games.
* Fix permission flag check
* Address gdkchan feedback
2020-11-15 21:30:20 +00:00
|
|
|
// ConfirmStereoVisionRestrictionConfigurable()
|
|
|
|
public ResultCode ConfirmStereoVisionRestrictionConfigurable(ServiceCtx context)
|
|
|
|
{
|
|
|
|
if ((_permissionFlag & 2) == 0)
|
|
|
|
{
|
|
|
|
return ResultCode.PermissionDenied;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (_stereoVisionRestrictionConfigurable)
|
|
|
|
{
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return ResultCode.StereoVisionRestrictionConfigurableDisabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1062)] // 4.0.0+
|
am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering
This PR enable VR rendering on games which support it through the Toy-Con VR Goggles.
Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved.
Everything is implemented accordingly to RE:
- am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx.
- lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled.
- pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted.
- hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now.
Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games.
* Fix permission flag check
* Address gdkchan feedback
2020-11-15 21:30:20 +00:00
|
|
|
// GetStereoVisionRestriction() -> bool
|
|
|
|
public ResultCode GetStereoVisionRestriction(ServiceCtx context)
|
|
|
|
{
|
|
|
|
if ((_permissionFlag & 0x200) == 0)
|
|
|
|
{
|
|
|
|
return ResultCode.PermissionDenied;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool stereoVisionRestriction = false;
|
|
|
|
|
|
|
|
if (_stereoVisionRestrictionConfigurable)
|
|
|
|
{
|
|
|
|
stereoVisionRestriction = _stereoVisionRestriction;
|
|
|
|
}
|
|
|
|
|
|
|
|
context.ResponseData.Write(stereoVisionRestriction);
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1063)] // 4.0.0+
|
am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering
This PR enable VR rendering on games which support it through the Toy-Con VR Goggles.
Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved.
Everything is implemented accordingly to RE:
- am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx.
- lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled.
- pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted.
- hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now.
Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games.
* Fix permission flag check
* Address gdkchan feedback
2020-11-15 21:30:20 +00:00
|
|
|
// SetStereoVisionRestriction(bool)
|
|
|
|
public ResultCode SetStereoVisionRestriction(ServiceCtx context)
|
|
|
|
{
|
|
|
|
if ((_permissionFlag & 0x200) == 0)
|
|
|
|
{
|
|
|
|
return ResultCode.PermissionDenied;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool stereoVisionRestriction = context.RequestData.ReadBoolean();
|
|
|
|
|
|
|
|
if (!_featuresRestriction)
|
|
|
|
{
|
|
|
|
if (_stereoVisionRestrictionConfigurable)
|
|
|
|
{
|
|
|
|
_stereoVisionRestriction = stereoVisionRestriction;
|
|
|
|
|
|
|
|
// TODO: It signals an internal event of service. We have to determine where this event is used.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1064)] // 5.0.0+
|
am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering
This PR enable VR rendering on games which support it through the Toy-Con VR Goggles.
Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved.
Everything is implemented accordingly to RE:
- am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx.
- lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled.
- pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted.
- hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now.
Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games.
* Fix permission flag check
* Address gdkchan feedback
2020-11-15 21:30:20 +00:00
|
|
|
// ResetConfirmedStereoVisionPermission()
|
|
|
|
public ResultCode ResetConfirmedStereoVisionPermission(ServiceCtx context)
|
|
|
|
{
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
|
2023-04-14 23:00:34 +00:00
|
|
|
[CommandCmif(1065)] // 5.0.0+
|
am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering
This PR enable VR rendering on games which support it through the Toy-Con VR Goggles.
Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved.
Everything is implemented accordingly to RE:
- am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx.
- lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled.
- pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted.
- hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now.
Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games.
* Fix permission flag check
* Address gdkchan feedback
2020-11-15 21:30:20 +00:00
|
|
|
// IsStereoVisionPermitted() -> bool
|
|
|
|
public ResultCode IsStereoVisionPermitted(ServiceCtx context)
|
|
|
|
{
|
|
|
|
bool isStereoVisionPermitted = false;
|
|
|
|
|
|
|
|
ResultCode resultCode = IsStereoVisionPermittedImpl();
|
|
|
|
|
|
|
|
if (resultCode == ResultCode.Success)
|
|
|
|
{
|
|
|
|
isStereoVisionPermitted = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
context.ResponseData.Write(isStereoVisionPermitted);
|
|
|
|
|
|
|
|
return resultCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
private ResultCode IsStereoVisionPermittedImpl()
|
|
|
|
{
|
|
|
|
/*
|
2022-02-26 23:52:25 +00:00
|
|
|
// TODO: Application Exemptions are read from file "appExemptions.dat" in the service savedata.
|
am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering
This PR enable VR rendering on games which support it through the Toy-Con VR Goggles.
Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved.
Everything is implemented accordingly to RE:
- am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx.
- lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled.
- pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted.
- hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now.
Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games.
* Fix permission flag check
* Address gdkchan feedback
2020-11-15 21:30:20 +00:00
|
|
|
// Since we don't support the pctl savedata for now, this can be implemented later.
|
|
|
|
|
|
|
|
if (appExemption)
|
|
|
|
{
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (_stereoVisionRestrictionConfigurable && _stereoVisionRestriction)
|
|
|
|
{
|
|
|
|
return ResultCode.StereoVisionDenied;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
}
|
2018-02-10 00:14:55 +00:00
|
|
|
}
|
|
|
|
}
|