mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-05 16:09:24 +02:00
Added pctlConfirmStereoVisionPermission and pctlResetConfirmedStereoVisionPermission.
This commit is contained in:
parent
9884ce0462
commit
1dd057ac09
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user