nn::applet::CTR::EnableSleep Function
void EnableSleep(
bool isSleepCheck = true
);
| Name | Description | |
|---|---|---|
| in | isSleepCheck | Indicates whether to sleep if the system is shut. Sleeps if true. |
Enables going to sleep.
Unless using this function to enable 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.
The applet::Enable function calls applet::EnableSleep(false).
CONFIDENTIAL