Added pctlConfirmStereoVisionPermission and pctlResetConfirmedStereoVisionPermission.

This commit is contained in:
yellows8 2019-04-22 12:33:01 -04:00
parent 9884ce0462
commit 1dd057ac09
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 20 additions and 0 deletions

View File

@ -12,9 +12,15 @@
Result pctlInitialize(void);
void pctlExit(void);
/// Confirm whether VrMode is allowed. Only available with [4.0.0+].
Result pctlConfirmStereoVisionPermission(void);
/// Gets whether Parental Controls are enabled.
Result pctlIsRestrictionEnabled(bool *flag);
/// Reset the confirmation done by \ref pctlConfirmStereoVisionPermission. Only available with [5.0.0+].
Result pctlResetConfirmedStereoVisionPermission(void);
/// Gets whether VrMode is allowed. Only available with [5.0.0+].
Result pctlIsStereoVisionPermitted(bool *flag);

View File

@ -150,10 +150,24 @@ static Result _pctlNoInputOutBool(u64 cmd_id, bool *flag) {
return rc;
}
Result pctlConfirmStereoVisionPermission(void) {
if (hosversionBefore(4,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _pctlNoIO(1013);
}
Result pctlIsRestrictionEnabled(bool *flag) {
return _pctlNoInputOutBool(1031, flag);
}
Result pctlResetConfirmedStereoVisionPermission(void) {
if (hosversionBefore(5,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _pctlNoIO(1064);
}
Result pctlIsStereoVisionPermitted(bool *flag) {
if (hosversionBefore(5,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);