diff --git a/source/switch/init.c b/source/switch/init.c index 76cbefa..57bd790 100644 --- a/source/switch/init.c +++ b/source/switch/init.c @@ -53,6 +53,8 @@ void userAppInit () { // disable immediate app close appletLockExit (); + // disable auto-sleep + appletSetAutoSleepDisabled (true); romfsInit (); plInitialize (PlServiceType_User); @@ -80,5 +82,7 @@ void userAppExit () psmExit (); plExit (); romfsExit (); + // Restore auto-sleep + appletSetAutoSleepDisabled (false); appletUnlockExit (); }