Make it obvious that signature patches work on older HOS versions

This commit is contained in:
Huntereb 2019-11-16 12:42:55 -05:00
parent 11491fb61e
commit 86f2d685d5

View file

@ -17,7 +17,7 @@ namespace sig {
std::string versionText = ""; std::string versionText = "";
std::string installButtonText = "Install"; std::string installButtonText = "Install";
if (patchesVersion != "") { if (patchesVersion != "") {
versionText = "\n\nYou currently have signature patches installed for HOS version " + patchesVersion + "."; versionText = "\n\nYou currently have signature patches installed for up to HOS version " + patchesVersion + ".";
installButtonText = "Update"; installButtonText = "Update";
} }
int ourResult = inst::ui::mainApp->CreateShowDialog("Install signature patches?", "Signature patches are required for installing and playing NSP contents." + versionText, {installButtonText, "Uninstall", "Cancel"}, true); int ourResult = inst::ui::mainApp->CreateShowDialog("Install signature patches?", "Signature patches are required for installing and playing NSP contents." + versionText, {installButtonText, "Uninstall", "Cancel"}, true);
@ -37,7 +37,7 @@ namespace sig {
if (didExtract) { if (didExtract) {
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 up to HOS version " + patchesVersion + "! ";
if (inst::ui::mainApp->CreateShowDialog("Install complete!", versionText + "\n\nRestart your console to apply!", {"Restart", "I'll do it later"}, false) == 0) bpcRebootSystem(); if (inst::ui::mainApp->CreateShowDialog("Install complete!", versionText + "\n\nRestart your console to apply!", {"Restart", "I'll do it later"}, false) == 0) bpcRebootSystem();
} }
else { else {