rosalina: don't keep an ac:u handle. Partially fixes the shutdown issue

This commit is contained in:
TuxSH 2020-04-26 20:55:52 +01:00
parent 33431cb939
commit 1d8b793cf7
2 changed files with 7 additions and 3 deletions

View File

@ -91,7 +91,7 @@ void exit(int rc)
__libc_fini_array(); __libc_fini_array();
// Kernel will take care of it all // Kernel will take care of it all
/*acExit(); /*
pmDbgExit(); pmDbgExit();
fsExit(); fsExit();
svcCloseHandle(*fsRegGetSessionHandle()); svcCloseHandle(*fsRegGetSessionHandle());
@ -134,8 +134,8 @@ void initSystem(void)
if (R_FAILED(pmDbgInit())) if (R_FAILED(pmDbgInit()))
svcBreak(USERBREAK_PANIC); svcBreak(USERBREAK_PANIC);
if (R_FAILED(acInit())) // **** DO NOT init services that don't come from KIPs here ****
svcBreak(USERBREAK_PANIC); // Instead, init the service only where it's actually init (then deinit it).
__libc_init_array(); __libc_init_array();

View File

@ -153,6 +153,8 @@ static void SysConfigMenu_ForceWifiConnection(int slot)
{ {
char ssid[0x20 + 1] = {0}; char ssid[0x20 + 1] = {0};
acInit();
acuConfig config = {0}; acuConfig config = {0};
ACU_CreateDefaultConfig(&config); ACU_CreateDefaultConfig(&config);
ACU_SetNetworkArea(&config, 2); ACU_SetNetworkArea(&config, 2);
@ -173,6 +175,8 @@ static void SysConfigMenu_ForceWifiConnection(int slot)
} }
svcCloseHandle(connectEvent); svcCloseHandle(connectEvent);
acExit();
char infoString[80] = {0}; char infoString[80] = {0};
u32 infoStringColor = forcedConnection ? COLOR_GREEN : COLOR_RED; u32 infoStringColor = forcedConnection ? COLOR_GREEN : COLOR_RED;
if(forcedConnection) if(forcedConnection)