mirror of
https://github.com/mtheall/ftpd.git
synced 2024-11-23 01:29:51 +00:00
Updates Switch app initialization to disable auto-sleep
Disables HOS auto-sleep during app lifetime to prevent sleep from breaking large file transfers
This commit is contained in:
parent
e27898f0c3
commit
fec8332df6
@ -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 ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user