From baa3639cb5fce707a42947ec859e7a9d74e736cc Mon Sep 17 00:00:00 2001 From: flb Date: Sun, 17 Jan 2021 18:58:20 +0100 Subject: [PATCH] =?UTF-8?q?excluded=20fus=C3=A9e=20secondary=20and=20mtc?= =?UTF-8?q?=20for=20the=20payload=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/constants.hpp | 2 ++ source/utils.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/constants.hpp b/include/constants.hpp index 025cd89..e65bae0 100644 --- a/include/constants.hpp +++ b/include/constants.hpp @@ -57,6 +57,8 @@ #define BOOTLOADER_PL_PATH "/bootloader/payloads/" #define UPDATE_BIN_PATH "/bootloader/update.bin" #define REBOOT_PAYLOAD_PATH "/atmosphere/reboot_payload.bin" +#define FUSEE_SECONDARY "/atmosphere/fusee-secondary.bin" +#define FUSEE_MTC "/atmosphere/fusee-mtc.bin" #define AMS_ZIP_PATH "/config/aio-switch-updater/ams.zip" #define APP_ZIP_PATH "/config/aio-switch-updater/app.zip" diff --git a/source/utils.cpp b/source/utils.cpp index dc6d4c9..a6f9a9c 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -252,8 +252,11 @@ std::vector fetchPayloads(){ std::vector res; for (auto& path : payloadPaths){ for (const auto & entry : std::filesystem::directory_iterator(path)){ - if(entry.path().extension().string() == ".bin") - res.push_back(entry.path().string().c_str()); + if(entry.path().extension().string() == ".bin"){ + std::cout << entry.path().string() << std::endl; + if(entry.path().string() != FUSEE_SECONDARY && entry.path().string() != FUSEE_MTC) + res.push_back(entry.path().string().c_str()); + } } }