mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-22 19:11:47 +01: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