From 33e9e59f2a4dc635d9e9f8b49ba66406d0f61395 Mon Sep 17 00:00:00 2001 From: Huntereb Date: Sat, 16 Nov 2019 13:16:47 -0500 Subject: [PATCH] Don't mention NSP specifically if possible --- source/netInstall.cpp | 2 +- source/nspInstall.cpp | 4 ++-- source/ui/mainPage.cpp | 6 +++--- source/ui/netInstPage.cpp | 4 ++-- source/ui/nspInstPage.cpp | 4 ++-- source/ui/optionsPage.cpp | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/source/netInstall.cpp b/source/netInstall.cpp index 88bc4d6..59c98d9 100755 --- a/source/netInstall.cpp +++ b/source/netInstall.cpp @@ -240,7 +240,7 @@ namespace netInstStuff{ } if (kDown & KEY_X) { - inst::ui::mainApp->CreateShowDialog("Help", "NSP and NSZ files can be installed remotely from your other devices\nusing tools such as ns-usbloader or Fluffy. To send these files to your\nSwitch, simply open one of the pieces of software recomended above on\nyour PC or mobile device, input your Switch's IP address\n(listed on-screen), select your NSP and NSZ files, then upload to your\nconsole! If the software you're using won't let you select NSZ files,\ntry renaming the extension from NSZ to NSP.\n\nIf you can't figure it out, just copy the NSP or NSZ file to your SD\ncard and try the \"Install NSP from SD Card\" option on the main menu!", {"OK"}, true); + inst::ui::mainApp->CreateShowDialog("Help", "Files can be installed remotely from your other devices using tools such\nas ns-usbloader or Fluffy. To send these files to your Switch, simply\nopen one of the pieces of software recomended above on your PC or mobile\ndevice, input your Switch's IP address (listed on-screen), select your\nfiles, then upload to your console! If the software you're using won't\nlet you select specific file types, try renaming the extension to\nsomething it accepts. Awoo Installer doesn't care about file extensions!\n\nIf you can't figure it out, just copy your files to your SD card and try\nthe \"Install from SD Card\" option on the main menu!", {"OK"}, true); } struct sockaddr_in client; diff --git a/source/nspInstall.cpp b/source/nspInstall.cpp index bb8c510..357dc1e 100755 --- a/source/nspInstall.cpp +++ b/source/nspInstall.cpp @@ -143,7 +143,7 @@ namespace nspInstStuff { inst::ui::setInstBarPerc(100); if (ourNspList.size() > 1) { if (inst::config::deletePrompt) { - if(inst::ui::mainApp->CreateShowDialog(std::to_string(ourNspList.size()) + " files installed successfully! Delete them from the SD card?", "NSP and NSZ files aren't needed anymore after they've been installed", {"No","Yes"}, false) == 1) { + if(inst::ui::mainApp->CreateShowDialog(std::to_string(ourNspList.size()) + " files installed successfully! Delete them from the SD card?", "Installable files aren't needed anymore after they've been installed", {"No","Yes"}, false) == 1) { for (long unsigned int i = 0; i < ourNspList.size(); i++) { if (std::filesystem::exists(ourNspList[i])) std::filesystem::remove(ourNspList[i]); } @@ -151,7 +151,7 @@ namespace nspInstStuff { } else inst::ui::mainApp->CreateShowDialog(std::to_string(ourNspList.size()) + " files installed successfully!", nspInstStuff::finishedMessage(), {"OK"}, true); } else { if (inst::config::deletePrompt) { - if(inst::ui::mainApp->CreateShowDialog(inst::util::shortenString(ourNspList[0].string().erase(0, 6), 32, true) + " installed! Delete it from the SD card?", "NSP and NSZ files aren't needed anymore after they've been installed", {"No","Yes"}, false) == 1) if (std::filesystem::exists(ourNspList[0])) std::filesystem::remove(ourNspList[0]); + if(inst::ui::mainApp->CreateShowDialog(inst::util::shortenString(ourNspList[0].string().erase(0, 6), 32, true) + " installed! Delete it from the SD card?", "Installable files aren't needed anymore after they've been installed", {"No","Yes"}, false) == 1) if (std::filesystem::exists(ourNspList[0])) std::filesystem::remove(ourNspList[0]); } else inst::ui::mainApp->CreateShowDialog(inst::util::shortenString(ourNspList[0].string().erase(0, 6), 42, true) + " installed!", nspInstStuff::finishedMessage(), {"OK"}, true); } } diff --git a/source/ui/mainPage.cpp b/source/ui/mainPage.cpp index ddd7894..861c50e 100755 --- a/source/ui/mainPage.cpp +++ b/source/ui/mainPage.cpp @@ -23,10 +23,10 @@ namespace inst::ui { this->optionMenu = pu::ui::elm::Menu::New(0, 93, 1280, COLOR("#67000000"), 113, (567 / 113)); this->optionMenu->SetOnFocusColor(COLOR("#00000033")); this->optionMenu->SetScrollbarColor(COLOR("#170909FF")); - this->installMenuItem = pu::ui::elm::MenuItem::New("Install NSP from SD Card"); + this->installMenuItem = pu::ui::elm::MenuItem::New("Install from SD Card"); this->installMenuItem->SetColor(COLOR("#FFFFFFFF")); this->installMenuItem->SetIcon("romfs:/micro-sd.png"); - this->netInstallMenuItem = pu::ui::elm::MenuItem::New("Install NSP Over LAN or Internet"); + this->netInstallMenuItem = pu::ui::elm::MenuItem::New("Install Over LAN or Internet"); this->netInstallMenuItem->SetColor(COLOR("#FFFFFFFF")); this->netInstallMenuItem->SetIcon("romfs:/cloud-download.png"); this->sigPatchesMenuItem = pu::ui::elm::MenuItem::New("Manage Signature Patches"); @@ -62,7 +62,7 @@ namespace inst::ui { mainApp->nspinstPage->drawMenuItems(true); mainApp->LoadLayout(mainApp->nspinstPage); } else { - mainApp->CreateShowDialog("No NSP or NSZ files found!", "Copy them to the root of your SD card!", {"OK"}, true); + mainApp->CreateShowDialog("No installable files found!", "Copy NSP or NSZ files to the root of your SD card!", {"OK"}, true); } } diff --git a/source/ui/netInstPage.cpp b/source/ui/netInstPage.cpp index d3572c0..71fb436 100755 --- a/source/ui/netInstPage.cpp +++ b/source/ui/netInstPage.cpp @@ -114,8 +114,8 @@ namespace inst::ui { netInstPage::startNetwork(); return; } else { - this->pageInfoText->SetText("Select NSP files to install from the server, then press the Plus button!"); - this->butText->SetText("\ue0e0 Select NSP \ue0e3 Select All \ue0ef Install NSP(s) \ue0e1 Cancel "); + this->pageInfoText->SetText("Select what you want to install from the server, then press the Plus button!"); + this->butText->SetText("\ue0e0 Select File \ue0e3 Select All \ue0ef Install File(s) \ue0e1 Cancel "); netInstPage::drawMenuItems(true); } this->menu->SetVisible(true); diff --git a/source/ui/nspInstPage.cpp b/source/ui/nspInstPage.cpp index b82c2d3..bf49c14 100755 --- a/source/ui/nspInstPage.cpp +++ b/source/ui/nspInstPage.cpp @@ -23,9 +23,9 @@ namespace inst::ui { this->titleImage = Image::New(0, 0, "romfs:/logo.png"); this->appVersionText = TextBlock::New(480, 49, "v" + inst::config::appVersion, 22); this->appVersionText->SetColor(COLOR("#FFFFFFFF")); - this->pageInfoText = TextBlock::New(10, 109, "Select NSP files to install, then press the Plus button!", 30); + this->pageInfoText = TextBlock::New(10, 109, "Select what you want to install, then press the Plus button!", 30); this->pageInfoText->SetColor(COLOR("#FFFFFFFF")); - this->butText = TextBlock::New(10, 678, "\ue0e0 Select NSP \ue0e3 Select All \ue0ef Install NSP(s) \ue0e2 Help \ue0e1 Cancel ", 24); + this->butText = TextBlock::New(10, 678, "\ue0e0 Select File \ue0e3 Select All \ue0ef Install File(s) \ue0e2 Help \ue0e1 Cancel ", 24); this->butText->SetColor(COLOR("#FFFFFFFF")); this->menu = pu::ui::elm::Menu::New(0, 154, 1280, COLOR("#FFFFFF00"), 84, (506 / 84)); this->menu->SetOnFocusColor(COLOR("#00000033")); diff --git a/source/ui/optionsPage.cpp b/source/ui/optionsPage.cpp index f43654c..35d4824 100755 --- a/source/ui/optionsPage.cpp +++ b/source/ui/optionsPage.cpp @@ -12,7 +12,7 @@ namespace inst::ui { extern MainApplication *mainApp; - std::vector ourMenuEntries = {"Ignore minimum firmware version required by NSP files", "Verify NCA signatures before installation", "Ask to delete NSP files after installation", "Remove anime", "Signature patches source URL: "}; + std::vector ourMenuEntries = {"Ignore minimum firmware version required by titles", "Verify NCA signatures before installation", "Ask to delete installable files after installation", "Remove anime", "Signature patches source URL: "}; optionsPage::optionsPage() : Layout::Layout() { this->SetBackgroundColor(COLOR("#670000FF"));