mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 03:11:49 +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
|
// disable immediate app close
|
||||||
appletLockExit ();
|
appletLockExit ();
|
||||||
|
// disable auto-sleep
|
||||||
|
appletSetAutoSleepDisabled (true);
|
||||||
|
|
||||||
romfsInit ();
|
romfsInit ();
|
||||||
plInitialize (PlServiceType_User);
|
plInitialize (PlServiceType_User);
|
||||||
@ -80,5 +82,7 @@ void userAppExit ()
|
|||||||
psmExit ();
|
psmExit ();
|
||||||
plExit ();
|
plExit ();
|
||||||
romfsExit ();
|
romfsExit ();
|
||||||
|
// Restore auto-sleep
|
||||||
|
appletSetAutoSleepDisabled (false);
|
||||||
appletUnlockExit ();
|
appletUnlockExit ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user