mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
bpc: Added a required-sysver check for bpcGetSleepButtonState which was missing.
This commit is contained in:
parent
3a22332630
commit
ab715a9a49
@ -24,4 +24,4 @@ Service* bpcGetServiceSession(void);
|
||||
|
||||
Result bpcShutdownSystem(void);
|
||||
Result bpcRebootSystem(void);
|
||||
Result bpcGetSleepButtonState(BpcSleepButtonState *out);
|
||||
Result bpcGetSleepButtonState(BpcSleepButtonState *out); ///< [2.0.0+]
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user