More small string changes for the signature patches installer

This commit is contained in:
Huntereb 2019-10-29 22:31:39 -04:00
parent 351ae47276
commit 75fac5f1c9

View file

@ -13,7 +13,7 @@ namespace sig {
try { try {
std::string patchesVersion = inst::util::readTextFromFile("sdmc:/atmosphere/exefs_patches/es_patches/patches.txt"); std::string patchesVersion = inst::util::readTextFromFile("sdmc:/atmosphere/exefs_patches/es_patches/patches.txt");
std::string versionText = ""; std::string versionText = "";
if (patchesVersion != "") versionText = "\nYou currently have signature patches installed for HOS version " + patchesVersion; if (patchesVersion != "") versionText = "\n\nYou currently have signature patches installed for HOS version " + patchesVersion + ".";
int ourResult = inst::ui::mainApp->CreateShowDialog("Install signature patches?", "Signature patches are required for installing and playing NSP contents." + versionText, {"Install", "Uninstall", "Cancel"}, true); int ourResult = inst::ui::mainApp->CreateShowDialog("Install signature patches?", "Signature patches are required for installing and playing NSP contents." + versionText, {"Install", "Uninstall", "Cancel"}, true);
if (ourResult == 0) { if (ourResult == 0) {
if (!inst::util::copyFile("sdmc:/bootloader/patches.ini", inst::config::appDir + "/patches.ini.old")) { if (!inst::util::copyFile("sdmc:/bootloader/patches.ini", inst::config::appDir + "/patches.ini.old")) {
@ -32,7 +32,7 @@ namespace sig {
patchesVersion = inst::util::readTextFromFile("sdmc:/atmosphere/exefs_patches/es_patches/patches.txt"); patchesVersion = inst::util::readTextFromFile("sdmc:/atmosphere/exefs_patches/es_patches/patches.txt");
versionText = ""; versionText = "";
if (patchesVersion != "") versionText = "Your signature patches have been updated for HOS version " + patchesVersion + "! "; if (patchesVersion != "") versionText = "Your signature patches have been updated for HOS version " + patchesVersion + "! ";
inst::ui::mainApp->CreateShowDialog("Install complete!", versionText + "Restart your console to apply!", {"OK"}, true); inst::ui::mainApp->CreateShowDialog("Install complete!", versionText + "\n\nRestart your console to apply!", {"OK"}, true);
} }
else { else {
inst::ui::mainApp->CreateShowDialog("Could not extract files!", "", {"OK"}, true); inst::ui::mainApp->CreateShowDialog("Could not extract files!", "", {"OK"}, true);