From 568019123ee81822a0f5b3c2f04cca92481a0a57 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Mon, 20 Jan 2020 13:24:35 +0300 Subject: [PATCH] Add 'Do not rebuild' support for volumes --- ffsengine.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ffsengine.cpp b/ffsengine.cpp index d0d4399..72e0201 100644 --- a/ffsengine.cpp +++ b/ffsengine.cpp @@ -3467,14 +3467,18 @@ 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