follow changes in ctrulib PR
This commit is contained in:
parent
236dbb043c
commit
93e87284aa
@ -152,17 +152,17 @@ static void SysConfigMenu_ForceWifiConnection(int slot)
|
|||||||
{
|
{
|
||||||
char ssid[0x20 + 1] = {0};
|
char ssid[0x20 + 1] = {0};
|
||||||
|
|
||||||
u8 data[0x200] = {0};
|
acuConfig config = {0};
|
||||||
ACU_CreateDefaultConfig(data);
|
ACU_CreateDefaultConfig(&config);
|
||||||
ACU_SetNetworkArea(data, 2);
|
ACU_SetNetworkArea(&config, 2);
|
||||||
ACU_SetAllowApType(data, 1 << slot);
|
ACU_SetAllowApType(&config, 1 << slot);
|
||||||
ACU_SetRequestEulaVersion(data);
|
ACU_SetRequestEulaVersion(&config);
|
||||||
|
|
||||||
Handle connectEvent = 0;
|
Handle connectEvent = 0;
|
||||||
svcCreateEvent(&connectEvent, RESET_ONESHOT);
|
svcCreateEvent(&connectEvent, RESET_ONESHOT);
|
||||||
|
|
||||||
bool forcedConnection = false;
|
bool forcedConnection = false;
|
||||||
if(R_SUCCEEDED(ACU_ConnectAsync(data, connectEvent)))
|
if(R_SUCCEEDED(ACU_ConnectAsync(&config, connectEvent)))
|
||||||
{
|
{
|
||||||
if(R_SUCCEEDED(svcWaitSynchronization(connectEvent, -1)))
|
if(R_SUCCEEDED(svcWaitSynchronization(connectEvent, -1)))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user