Added pctlIsStereoVisionPermitted.

This commit is contained in:
yellows8 2019-04-20 16:09:35 -04:00
parent 1c832bebd6
commit 2916bd631a
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 10 additions and 0 deletions

View File

@ -15,3 +15,6 @@ void pctlExit(void);
/// Gets whether Parental Controls are enabled.
Result pctlIsRestrictionEnabled(bool *flag);
/// Gets whether VrMode is allowed. Only available with [5.0.0+].
Result pctlIsStereoVisionPermitted(bool *flag);

View File

@ -154,3 +154,10 @@ Result pctlIsRestrictionEnabled(bool *flag) {
return _pctlNoInputOutBool(1031, flag);
}
Result pctlIsStereoVisionPermitted(bool *flag) {
if (hosversionBefore(5,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _pctlNoInputOutBool(1065, flag);
}