mirror of
https://github.com/Team-Neptune/NSAInstaller.git
synced 2024-11-23 20:59:47 +00:00
Fix string lengths a little bit for installs
This commit is contained in:
parent
ad388c412d
commit
b3cb19760f
@ -124,7 +124,7 @@ namespace netInstStuff{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
for (unsigned int i = 0; i < ourUrlList.size(); i++) {
|
for (unsigned int i = 0; i < ourUrlList.size(); i++) {
|
||||||
inst::ui::setTopInstInfoText("Installing " + inst::util::shortenString(inst::util::formatUrlString(ourUrlList[i]), 64, true) + "...");
|
inst::ui::setTopInstInfoText("Installing " + inst::util::shortenString(inst::util::formatUrlString(ourUrlList[i]), 48, true));
|
||||||
|
|
||||||
tin::install::nsp::HTTPNSP httpNSP(ourUrlList[i]);
|
tin::install::nsp::HTTPNSP httpNSP(ourUrlList[i]);
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ namespace nspInstStuff {
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < ourNspList.size(); i++) {
|
for (unsigned int i = 0; i < ourNspList.size(); i++) {
|
||||||
inst::ui::setTopInstInfoText("Installing " + inst::util::shortenString(ourNspList[i].string().erase(0, 6), 64, true) + "...");
|
inst::ui::setTopInstInfoText("Installing " + inst::util::shortenString(ourNspList[i].string().erase(0, 6), 48, true));
|
||||||
|
|
||||||
bool isNsz = false;
|
bool isNsz = false;
|
||||||
if (ourNspList[i].extension() == ".nsz") {
|
if (ourNspList[i].extension() == ".nsz") {
|
||||||
|
@ -110,7 +110,7 @@ namespace inst::ui {
|
|||||||
void netInstPage::startInstall(bool urlMode) {
|
void netInstPage::startInstall(bool urlMode) {
|
||||||
int dialogResult = -1;
|
int dialogResult = -1;
|
||||||
if (netInstPage::selectedUrls.size() == 1) {
|
if (netInstPage::selectedUrls.size() == 1) {
|
||||||
dialogResult = mainApp->CreateShowDialog("Where should " + inst::util::shortenString(inst::util::formatUrlString(netInstPage::selectedUrls[0]), 64, true) + " be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
|
dialogResult = mainApp->CreateShowDialog("Where should " + inst::util::shortenString(inst::util::formatUrlString(netInstPage::selectedUrls[0]), 48, true) + " be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
|
||||||
} else dialogResult = mainApp->CreateShowDialog("Where should the selected files be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
|
} else dialogResult = mainApp->CreateShowDialog("Where should the selected files be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
|
||||||
if (dialogResult == -1 && !urlMode) return;
|
if (dialogResult == -1 && !urlMode) return;
|
||||||
else if (dialogResult == -1 && urlMode) {
|
else if (dialogResult == -1 && urlMode) {
|
||||||
|
@ -67,7 +67,7 @@ namespace inst::ui {
|
|||||||
int dialogResult = -1;
|
int dialogResult = -1;
|
||||||
if (nspInstPage::selectedNsps.size() == 1) {
|
if (nspInstPage::selectedNsps.size() == 1) {
|
||||||
std::string ourNsp = nspInstPage::selectedNsps[0].string().erase(0, 6);
|
std::string ourNsp = nspInstPage::selectedNsps[0].string().erase(0, 6);
|
||||||
dialogResult = mainApp->CreateShowDialog("Where should " + inst::util::shortenString(ourNsp, 64, true) + " be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
|
dialogResult = mainApp->CreateShowDialog("Where should " + inst::util::shortenString(ourNsp, 48, true) + " be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
|
||||||
} else dialogResult = mainApp->CreateShowDialog("Where should the selected files be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
|
} else dialogResult = mainApp->CreateShowDialog("Where should the selected files be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
|
||||||
if (dialogResult == -1) return;
|
if (dialogResult == -1) return;
|
||||||
nspInstStuff::installNspFromFile(nspInstPage::selectedNsps, dialogResult);
|
nspInstStuff::installNspFromFile(nspInstPage::selectedNsps, dialogResult);
|
||||||
|
Loading…
Reference in New Issue
Block a user