diff --git a/nx/include/switch/kernel/svc.h b/nx/include/switch/kernel/svc.h index 144adcc4c..b653c7dfc 100644 --- a/nx/include/switch/kernel/svc.h +++ b/nx/include/switch/kernel/svc.h @@ -152,6 +152,7 @@ typedef enum { /// Process Information. typedef enum { ProcessInfoType_ProcessState=0, ///s, (u32 *)out, 15); } +Result gpioPadSetUnknownEnabled(GpioPadSession *p, bool en) { + if (hosversionBefore(23,0,0)) + return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); + return _gpioCmdInBoolNoOut(&p->s, en, 20); +} + +Result gpioPadGetUnknownEnabled(GpioPadSession *p, bool *out) { + if (hosversionBefore(23,0,0)) + return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); + return _gpioCmdNoInOutBool(&p->s, out, 21); +} + void gpioPadClose(GpioPadSession *p) { serviceClose(&p->s); }