mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-09 12:01:44 +00:00
Fixed crashes in airplane mode introduced in 2.10.0
This commit is contained in:
parent
2c9b2c2f15
commit
d24e3a1461
3 changed files with 17 additions and 12 deletions
2
Makefile
2
Makefile
|
@ -22,7 +22,7 @@ DATA := data
|
|||
INCLUDES := include lib/zipper/include /lib/borealis/library/include/borealis/extern/nlohmann
|
||||
APP_TITLE := All-in-One Switch Updater
|
||||
APP_AUTHOR := HamletDuFromage
|
||||
APP_VERSION := 2.10.0
|
||||
APP_VERSION := 2.10.1
|
||||
TARGET := $(notdir $(CURDIR))
|
||||
|
||||
ROMFS := resources
|
||||
|
|
|
@ -20,7 +20,7 @@ AmsTab::AmsTab(const bool erista) : brls::List()
|
|||
|
||||
download::getRequest(AMS_URL, cfws);
|
||||
|
||||
CreateDownloadItems(cfws["Atmosphere"]);
|
||||
CreateDownloadItems(cfws.find("Atmosphere") != cfws.end() ? cfws["Atmosphere"] : nlohmann::ordered_json::object());
|
||||
|
||||
description = new brls::Label(
|
||||
brls::LabelStyle::DESCRIPTION,
|
||||
|
@ -38,8 +38,9 @@ AmsTab::AmsTab(const bool erista) : brls::List()
|
|||
});
|
||||
this->addView(listItem);
|
||||
|
||||
CreateDownloadItems(cfws["DeepSea"], false);
|
||||
CreateDownloadItems(cfws.find("DeepSea") != cfws.end() ? cfws["DeepSea"] : nlohmann::ordered_json::object());
|
||||
|
||||
if(cfws.size()) {
|
||||
auto custom_pack = fs::parseJsonFile(CUSTOM_PACKS_PATH);
|
||||
if (custom_pack.size() != 0) {
|
||||
description = new brls::Label(
|
||||
|
@ -51,6 +52,7 @@ AmsTab::AmsTab(const bool erista) : brls::List()
|
|||
|
||||
CreateDownloadItems(custom_pack, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void AmsTab::CreateDownloadItems(const nlohmann::ordered_json& cfw_links, bool hekate)
|
||||
|
|
|
@ -175,6 +175,9 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
|
|||
verTitles.push_back("v2.10.0");
|
||||
changes.push_back("\uE016 Added support custom packs through a json file.");
|
||||
|
||||
verTitles.push_back("v2.10.1");
|
||||
changes.push_back("\uE016 Fixed crashes in airplane mode introduced in 2.10.0");
|
||||
|
||||
for(int i = verTitles.size() -1 ; i >= 0; i--){
|
||||
listItem = new brls::ListItem(verTitles[i]);
|
||||
change = changes[i];
|
||||
|
|
Loading…
Reference in a new issue