nn::applet::CTR::DisableSleep Function
void DisableSleep(
bool isReplyReject = true
);
| Name | Description | |
|---|---|---|
| in | isReplyReject | If true, calls applet::ReplySleepQuery(applet::REPLY_REJECT) when a sleep query comes in. |
Prevents going to sleep.
After using this function to prevent going to sleep, when the application is active, all replies to the sleep query callback (configured by applet::SetSleepQueryCallback) are treated as if they were REPLY_REJECT.
CONFIDENTIAL