nifm: Added nifmSetWowlDelayedWakeTime.

This commit is contained in:
yellows8 2022-06-06 01:50:33 -04:00
parent d33bb0ad6a
commit bb42eab289
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 15 additions and 0 deletions

View File

@ -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
///@{ ///@{

View File

@ -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) {