mirror of
https://github.com/LumaTeam/Luma3DS.git
synced 2026-02-22 01:44:38 +00:00
Force wifi menu: handle unconfigured wifi slots correctly
This commit is contained in:
parent
45dce14f23
commit
6c324e0ed0
@ -267,9 +267,10 @@ void SysConfigMenu_ControlWifi(void)
|
|||||||
Result resInit = acInit();
|
Result resInit = acInit();
|
||||||
for (u32 i = 0; i < 3; i++)
|
for (u32 i = 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
// ssid[0] = '\0' if result is an error here
|
if (R_SUCCEEDED(ACI_LoadNetworkSetting(i)))
|
||||||
ACI_LoadNetworkSetting(i);
|
|
||||||
ACI_GetNetworkWirelessEssidSecuritySsid(ssids[i]);
|
ACI_GetNetworkWirelessEssidSecuritySsid(ssids[i]);
|
||||||
|
else
|
||||||
|
strcpy(ssids[i], "(not configured)");
|
||||||
}
|
}
|
||||||
if (R_SUCCEEDED(resInit))
|
if (R_SUCCEEDED(resInit))
|
||||||
acExit();
|
acExit();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user