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

View File

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