mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-28 12:22:02 +00:00
small tweaks
This commit is contained in:
parent
cc9e74386e
commit
91fa783415
5 changed files with 10 additions and 5 deletions
|
@ -101,6 +101,7 @@
|
||||||
"latest_cheats": "Latest version",
|
"latest_cheats": "Latest version",
|
||||||
"app": "app",
|
"app": "app",
|
||||||
"cfw": "CFW",
|
"cfw": "CFW",
|
||||||
|
"ams": "Atmosphère",
|
||||||
"ams_text": "\ue016 From this menu, you can download and update the Atmosph\u00e8re custom firmware necessary to run homebrew software.\n\ue016 DeepSea by Team Neptune is a CFW pack that includes Atmosph\u00e8re, hekate, and various homebrew apps.",
|
"ams_text": "\ue016 From this menu, you can download and update the Atmosph\u00e8re custom firmware necessary to run homebrew software.\n\ue016 DeepSea by Team Neptune is a CFW pack that includes Atmosph\u00e8re, hekate, and various homebrew apps.",
|
||||||
"cfw_text": "\ue016 Alternative CFWs, bootloaders.",
|
"cfw_text": "\ue016 Alternative CFWs, bootloaders.",
|
||||||
"cheats": "cheats",
|
"cheats": "cheats",
|
||||||
|
@ -146,7 +147,7 @@
|
||||||
},
|
},
|
||||||
"ams_update": {
|
"ams_update": {
|
||||||
"reboot_rcm": "The Switch will now reboot to a special payload in order to finalise the install.",
|
"reboot_rcm": "The Switch will now reboot to a special payload in order to finalise the install.",
|
||||||
"install_hekate": "Do you want to also download Hekate?\nIf not, the Switch will now launch reboot to a special payload in order to finalise the install.",
|
"install_hekate": "Do you want to also download Hekate?\nIf not, the Switch will now reboot to a special payload in order to finalise the install.",
|
||||||
"delete_contents": "Would you like to remove the existing '/atmosphere/contents/' directory? This will prevent crashes if you have sysmodules that do not support the latest Atmosph\u00e8re. Please note that it will delete all your existing sysmodules, mods and cheats.",
|
"delete_contents": "Would you like to remove the existing '/atmosphere/contents/' directory? This will prevent crashes if you have sysmodules that do not support the latest Atmosph\u00e8re. Please note that it will delete all your existing sysmodules, mods and cheats.",
|
||||||
"delete_sysmodules_flags": "Would you like to delete all the custom sysmodules startup flags? This will turn off all your sysmodules and prevent crashes if you have sysmodules that do not support the latest Atmosphère.",
|
"delete_sysmodules_flags": "Would you like to delete all the custom sysmodules startup flags? This will turn off all your sysmodules and prevent crashes if you have sysmodules that do not support the latest Atmosphère.",
|
||||||
"current_ams": "\ue016 Current Atmosphère: "
|
"current_ams": "\ue016 Current Atmosphère: "
|
||||||
|
|
|
@ -17,7 +17,7 @@ AmsTab::AmsTab() :
|
||||||
std::vector<std::pair<std::string, std::string>> links;
|
std::vector<std::pair<std::string, std::string>> links;
|
||||||
std::string operation("menus/main/getting"_i18n);
|
std::string operation("menus/main/getting"_i18n);
|
||||||
this->description = new brls::Label(brls::LabelStyle::DESCRIPTION, "", true);
|
this->description = new brls::Label(brls::LabelStyle::DESCRIPTION, "", true);
|
||||||
operation += "menus/main/cfw"_i18n;
|
operation += "menus/main/ams"_i18n;
|
||||||
links = getLinks(AMS_URL);
|
links = getLinks(AMS_URL);
|
||||||
this->description->setText(
|
this->description->setText(
|
||||||
"menus/main/ams_text"_i18n + (running_cfw == ams ? "\n" + "menus/ams_update/current_ams"_i18n + getAmsInfo() : "")
|
"menus/main/ams_text"_i18n + (running_cfw == ams ? "\n" + "menus/ams_update/current_ams"_i18n + getAmsInfo() : "")
|
||||||
|
|
|
@ -62,7 +62,7 @@ int download_progress(void *p, double dltotal, double dlnow, double ultotal, dou
|
||||||
ProgressEvent::instance().setTotalCount(dltotal);
|
ProgressEvent::instance().setTotalCount(dltotal);
|
||||||
auto time_now = std::chrono::steady_clock::now();
|
auto time_now = std::chrono::steady_clock::now();
|
||||||
double elasped_time = ((std::chrono::duration<double>) (time_now - time_old)).count();
|
double elasped_time = ((std::chrono::duration<double>) (time_now - time_old)).count();
|
||||||
if(elasped_time > 1.0f) {
|
if(elasped_time > 1.2f) {
|
||||||
ProgressEvent::instance().setSpeed((dlnow - dlold) / elasped_time);
|
ProgressEvent::instance().setSpeed((dlnow - dlold) / elasped_time);
|
||||||
dlold = dlnow;
|
dlold = dlnow;
|
||||||
time_old = time_now;
|
time_old = time_now;
|
||||||
|
|
|
@ -267,7 +267,9 @@ void extractCheats(const char * zipPath, std::vector<std::string> titles, CFW cf
|
||||||
}
|
}
|
||||||
unzipper.close();
|
unzipper.close();
|
||||||
writeTitlesToFile(extractedTitles, UPDATED_TITLES_PATH);
|
writeTitlesToFile(extractedTitles, UPDATED_TITLES_PATH);
|
||||||
saveVersion(downloadPage(CHEATS_RELEASE_URL), CHEATS_VERSION);
|
auto cheatsVerVec = downloadFile(CHEATS_URL_VERSION);
|
||||||
|
std::string cheatsVer(cheatsVerVec.begin(), cheatsVerVec.end());
|
||||||
|
saveVersion(cheatsVer, CHEATS_VERSION);
|
||||||
ProgressEvent::instance().setStep(ProgressEvent::instance().getMax());
|
ProgressEvent::instance().setStep(ProgressEvent::instance().getMax());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,6 +306,9 @@ void extractAllCheats(const char * zipPath, CFW cfw){
|
||||||
ProgressEvent::instance().setStep(j);
|
ProgressEvent::instance().setStep(j);
|
||||||
}
|
}
|
||||||
unzipper.close();
|
unzipper.close();
|
||||||
|
auto cheatsVerVec = downloadFile(CHEATS_URL_VERSION);
|
||||||
|
std::string cheatsVer(cheatsVerVec.begin(), cheatsVerVec.end());
|
||||||
|
saveVersion(cheatsVer, CHEATS_VERSION);
|
||||||
ProgressEvent::instance().setStep(ProgressEvent::instance().getMax());
|
ProgressEvent::instance().setStep(ProgressEvent::instance().getMax());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,6 @@ ListDownloadTab::ListDownloadTab(const archiveType type) :
|
||||||
});
|
});
|
||||||
this->addView(listItem);
|
this->addView(listItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Reference in a new issue