bpc: Added a required-sysver check for bpcGetSleepButtonState which was missing.

This commit is contained in:
yellows8 2020-04-16 13:46:55 -04:00
parent 3a22332630
commit ab715a9a49
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 4 additions and 1 deletions

View File

@ -24,4 +24,4 @@ Service* bpcGetServiceSession(void);
Result bpcShutdownSystem(void);
Result bpcRebootSystem(void);
Result bpcGetSleepButtonState(BpcSleepButtonState *out);
Result bpcGetSleepButtonState(BpcSleepButtonState *out); ///< [2.0.0+]

View File

@ -32,6 +32,9 @@ Result bpcRebootSystem(void) {
}
Result bpcGetSleepButtonState(BpcSleepButtonState *out) {
if (hosversionBefore(2,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
u8 tmp = 0;
Result rc = serviceDispatchOut(&g_bpcSrv, 6, tmp);