Add 'Do not rebuild' support for volumes

This commit is contained in:
vit9696 2020-01-20 13:24:35 +03:00
parent b86c556ac3
commit 568019123e

View File

@ -3467,15 +3467,19 @@ UINT8 FfsEngine::reconstructVolume(const QModelIndex & index, QByteArray & recon
if (fileHeader->Type == EFI_FV_FILETYPE_PAD) {
padFileGuid = file.left(sizeof(EFI_GUID));
if (model->action(index.child(i, 0)) == Actions::DoNotRebuild) {
// User asked not to touch this file, do nothing here
}
// Parse non-empty pad file
if (model->rowCount(index.child(i, 0))) {
//TODO: handle it
else if (model->rowCount(index.child(i, 0))) {
// TODO: handle this special case
continue;
}
// Skip empty pad-file
else
else {
continue;
}
}
// Volume Top File
if (file.left(sizeof(EFI_GUID)) == EFI_FFS_VOLUME_TOP_FILE_GUID) {