1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-25 02:52:05 +00:00

excluded fusée secondary and mtc for the payload list

This commit is contained in:
flb 2021-01-17 18:58:20 +01:00
parent 318405950b
commit baa3639cb5
2 changed files with 7 additions and 2 deletions

View file

@ -57,6 +57,8 @@
#define BOOTLOADER_PL_PATH "/bootloader/payloads/" #define BOOTLOADER_PL_PATH "/bootloader/payloads/"
#define UPDATE_BIN_PATH "/bootloader/update.bin" #define UPDATE_BIN_PATH "/bootloader/update.bin"
#define REBOOT_PAYLOAD_PATH "/atmosphere/reboot_payload.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 AMS_ZIP_PATH "/config/aio-switch-updater/ams.zip"
#define APP_ZIP_PATH "/config/aio-switch-updater/app.zip" #define APP_ZIP_PATH "/config/aio-switch-updater/app.zip"

View file

@ -252,8 +252,11 @@ std::vector<std::string> fetchPayloads(){
std::vector<std::string> res; std::vector<std::string> res;
for (auto& path : payloadPaths){ for (auto& path : payloadPaths){
for (const auto & entry : std::filesystem::directory_iterator(path)){ for (const auto & entry : std::filesystem::directory_iterator(path)){
if(entry.path().extension().string() == ".bin") if(entry.path().extension().string() == ".bin"){
res.push_back(entry.path().string().c_str()); 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());
}
} }
} }