1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-08 11:31:43 +00:00

dirty fix to work on AMS 0.19

This commit is contained in:
flb 2021-04-11 21:37:20 +02:00
parent 3f7ecc7db8
commit f057cbb453
5 changed files with 8 additions and 22 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
!.vscode/c_cpp_properties.json
build/
screenshots/
libnx/
switch/
*.elf
*.nacp

View file

@ -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.4.4
APP_VERSION := 2.4.5-ams_fix
TARGET := $(notdir $(CURDIR))
ROMFS := resources

View file

@ -130,6 +130,10 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
verTitles.push_back("v2.4.4");
changes.push_back("\uE016 Significantly reduced time to retrieve build IDs.\n\uE016 Updated Polish localisation (thanks to https://github.com/teddy74eva).");
verTitles.push_back("v2.4.5-fix_ams");
changes.push_back("\uE016 Atmosphère 0.19+ support. Note that this version assumes your switch is running Atmosphère. I should fix this soon, but if you're on SXOS, please stay on 2.4.4.");
for(int i = verTitles.size() -1 ; i >= 0; i--){
listItem = new brls::ListItem(verTitles[i]);
change = changes[i];

View file

@ -14,7 +14,8 @@ using namespace i18n::literals;
//TimeServiceType __nx_time_service_type = TimeServiceType_System;
const CFW CurrentCfw::running_cfw = CurrentCfw::getCFW();
//const CFW CurrentCfw::running_cfw = CurrentCfw::getCFW();
const CFW CurrentCfw::running_cfw = CFW::ams;
int main(int argc, char* argv[])
{

View file

@ -265,30 +265,10 @@ bool isErista() {
};
void removeSysmodulesFlags(const char * directory) {
const std::set<std::string> AMS_SYSMODULES{
"010000000000000D",
"010000000000002B",
"0100000000000032",
"0100000000000036",
"0100000000000042",
"0100000000000008",
"010000000000003C",
"0100000000000034",
"0100000000000037"
};
bool found = false;
for (const auto & e : std::filesystem::recursive_directory_iterator(directory)) {
if(e.path().string().find("boot2.flag") != std::string::npos) {
for(const auto & c : AMS_SYSMODULES) {
if(e.path().string().find(c) != std::string::npos) {
found = true;
break;
}
}
if(!found)
std::filesystem::remove(e.path());
}
found = false;
}
}