mirror of
https://github.com/Huntereb/Awoo-Installer
synced 2024-11-10 14:14:21 +00:00
Press Y on net install page to supply your own URL
This commit is contained in:
parent
515cca1270
commit
f91a0104ff
2 changed files with 24 additions and 0 deletions
|
@ -175,6 +175,10 @@ namespace netInstStuff{
|
|||
{
|
||||
break;
|
||||
}
|
||||
if (kDown & KEY_Y)
|
||||
{
|
||||
return {"supplyUrl"};
|
||||
}
|
||||
|
||||
struct sockaddr_in client;
|
||||
socklen_t clientLen = sizeof(client);
|
||||
|
|
|
@ -34,6 +34,26 @@ namespace inst::ui {
|
|||
if (!ourUrls.size()) {
|
||||
mainApp->LoadLayout(mainApp->mainPage);
|
||||
return;
|
||||
} else if (ourUrls[0] == "supplyUrl") {
|
||||
Result rc=0;
|
||||
SwkbdConfig kbd;
|
||||
char tmpoutstr[128] = {0};
|
||||
rc = swkbdCreate(&kbd, 0);
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
swkbdConfigMakePresetDefault(&kbd);
|
||||
swkbdConfigSetInitialText(&kbd, "http://");
|
||||
rc = swkbdShow(&kbd, tmpoutstr, sizeof(tmpoutstr));
|
||||
swkbdClose(&kbd);
|
||||
if (R_SUCCEEDED(rc) && (tmpoutstr[0] != 0 || tmpoutstr != "http://")) {
|
||||
ourUrls[0] = tmpoutstr;
|
||||
this->pageInfoText->SetText(ourUrls[0]);
|
||||
netInstPage::startInstall();
|
||||
return;
|
||||
} else {
|
||||
mainApp->LoadLayout(mainApp->mainPage);
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this->pageInfoText->SetText("Select a NSP to install! Press B to cancel!");
|
||||
for (auto& url: ourUrls) {
|
||||
|
|
Loading…
Reference in a new issue