Added detection if multiple packs found
This commit is contained in:
@@ -521,8 +521,11 @@ int perform_installation(omninx_variant_t pack_variant, install_mode_t mode) {
|
||||
if (res != FR_OK) return res;
|
||||
|
||||
install_check_and_clear_screen_if_needed();
|
||||
// Remove staging directory
|
||||
// Remove staging directory (installed pack)
|
||||
res = cleanup_staging_directory(pack_variant);
|
||||
if (res != FR_OK) return res;
|
||||
// Remove other detected install directories (Standard/Light/OC) that were on SD
|
||||
res = cleanup_other_staging_directories(pack_variant);
|
||||
return res;
|
||||
} else {
|
||||
// Clean mode: backup, wipe, restore, install
|
||||
@@ -557,8 +560,11 @@ int perform_installation(omninx_variant_t pack_variant, install_mode_t mode) {
|
||||
if (res != FR_OK) return res;
|
||||
|
||||
install_check_and_clear_screen_if_needed();
|
||||
// Remove staging directory
|
||||
// Remove staging directory (installed pack)
|
||||
res = cleanup_staging_directory(pack_variant);
|
||||
if (res != FR_OK) return res;
|
||||
// Remove other detected install directories (Standard/Light/OC) that were on SD
|
||||
res = cleanup_other_staging_directories(pack_variant);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user