mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-12-28 18:36:02 +00:00
excluded fusée secondary and mtc for the payload list
This commit is contained in:
parent
318405950b
commit
baa3639cb5
2 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -252,8 +252,11 @@ std::vector<std::string> fetchPayloads(){
|
|||
std::vector<std::string> 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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue