mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
nifm: Added nifmSetWowlDelayedWakeTime.
This commit is contained in:
parent
d33bb0ad6a
commit
bb42eab289
@ -229,6 +229,14 @@ Result nifmIsAnyForegroundRequestAccepted(bool* out);
|
|||||||
Result nifmPutToSleep(void);
|
Result nifmPutToSleep(void);
|
||||||
Result nifmWakeUp(void);
|
Result nifmWakeUp(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief SetWowlDelayedWakeTime
|
||||||
|
* @note Only available with ::NifmServiceType_System or ::NifmServiceType_Admin.
|
||||||
|
* @note Only available on [9.0.0+].
|
||||||
|
* @param[in] val Input value.
|
||||||
|
*/
|
||||||
|
Result nifmSetWowlDelayedWakeTime(s32 val);
|
||||||
|
|
||||||
///@name IRequest
|
///@name IRequest
|
||||||
///@{
|
///@{
|
||||||
|
|
||||||
|
@ -319,6 +319,13 @@ Result nifmWakeUp(void) {
|
|||||||
return _nifmCmdNoIO(&g_nifmIGS, 24);
|
return _nifmCmdNoIO(&g_nifmIGS, 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result nifmSetWowlDelayedWakeTime(s32 val) {
|
||||||
|
if (hosversionBefore(9,0,0))
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
|
return _nifmCmdInU32NoOut(&g_nifmIGS, (u32)val, 43);
|
||||||
|
}
|
||||||
|
|
||||||
// IRequest
|
// IRequest
|
||||||
|
|
||||||
void nifmRequestClose(NifmRequest* r) {
|
void nifmRequestClose(NifmRequest* r) {
|
||||||
|
Loading…
Reference in New Issue
Block a user