aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2020-11-15 22:30:20 +0100
committerGitHub <noreply@github.com>2020-11-15 22:30:20 +0100
commit313f8d2eb6e4833170d685d6afd940c077e066f6 (patch)
treee5840f885fa0a7c83244806e11103748b6c928c0 /Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
parent4bc4cacdd0b615553a11cdcdb2aa7d3b563eac0b (diff)
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
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs b/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
index bf58628c..fcf06ee9 100644
--- a/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
+++ b/Ryujinx.HLE/HOS/Services/Pctl/ResultCode.cs
@@ -7,8 +7,10 @@
Success = 0,
- FreeCommunicationDisabled = (101 << ErrorCodeShift) | ModuleId,
- InvalidPid = (131 << ErrorCodeShift) | ModuleId,
- PermissionDenied = (133 << ErrorCodeShift) | ModuleId
+ FreeCommunicationDisabled = (101 << ErrorCodeShift) | ModuleId,
+ StereoVisionDenied = (104 << ErrorCodeShift) | ModuleId,
+ InvalidPid = (131 << ErrorCodeShift) | ModuleId,
+ PermissionDenied = (133 << ErrorCodeShift) | ModuleId,
+ StereoVisionRestrictionConfigurableDisabled = (181 << ErrorCodeShift) | ModuleId,
}
}