mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-26 18:08:23 +08:00
Add 'Do not rebuild' support for volumes
This commit is contained in:
parent
b86c556ac3
commit
568019123e
@ -3467,15 +3467,19 @@ UINT8 FfsEngine::reconstructVolume(const QModelIndex & index, QByteArray & recon
|
|||||||
if (fileHeader->Type == EFI_FV_FILETYPE_PAD) {
|
if (fileHeader->Type == EFI_FV_FILETYPE_PAD) {
|
||||||
padFileGuid = file.left(sizeof(EFI_GUID));
|
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
|
// Parse non-empty pad file
|
||||||
if (model->rowCount(index.child(i, 0))) {
|
else if (model->rowCount(index.child(i, 0))) {
|
||||||
//TODO: handle it
|
// TODO: handle this special case
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Skip empty pad-file
|
// Skip empty pad-file
|
||||||
else
|
else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Volume Top File
|
// Volume Top File
|
||||||
if (file.left(sizeof(EFI_GUID)) == EFI_FFS_VOLUME_TOP_FILE_GUID) {
|
if (file.left(sizeof(EFI_GUID)) == EFI_FFS_VOLUME_TOP_FILE_GUID) {
|
||||||
|
Loading…
Reference in New Issue
Block a user