diff --git a/nx/include/switch/services/bpc.h b/nx/include/switch/services/bpc.h index a724dcdc..cbddcdde 100644 --- a/nx/include/switch/services/bpc.h +++ b/nx/include/switch/services/bpc.h @@ -24,4 +24,4 @@ Service* bpcGetServiceSession(void); Result bpcShutdownSystem(void); Result bpcRebootSystem(void); -Result bpcGetSleepButtonState(BpcSleepButtonState *out); +Result bpcGetSleepButtonState(BpcSleepButtonState *out); ///< [2.0.0+] diff --git a/nx/source/services/bpc.c b/nx/source/services/bpc.c index 03b88f48..ea462cdb 100644 --- a/nx/source/services/bpc.c +++ b/nx/source/services/bpc.c @@ -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);