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()); + } } }