mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-12 22:26:13 -04:00
Implement local offsets
This commit is contained in:
parent
be2cdc7dfe
commit
afce02430a
16 changed files with 280 additions and 269 deletions
|
@ -33,7 +33,7 @@ std::vector<UString> FfsReport::generate()
|
|||
}
|
||||
|
||||
// Generate report recursive
|
||||
report.push_back(UString(" Type | Subtype | Offset | Size | CRC32 | Name "));
|
||||
report.push_back(UString(" Type | Subtype | Base | Size | CRC32 | Name "));
|
||||
USTATUS result = generateRecursive(report, root);
|
||||
if (result) {
|
||||
report.push_back(usprintf("%s: generateRecursive returned ", __FUNCTION__) + errorCodeToUString(result));
|
||||
|
@ -55,7 +55,7 @@ USTATUS FfsReport::generateRecursive(std::vector<UString> & report, const UModel
|
|||
UString text = model->text(index);
|
||||
UString offset = "| N/A ";
|
||||
if ((!model->compressed(index)) || (index.parent().isValid() && !model->compressed(index.parent()))) {
|
||||
offset = usprintf("| %08X ", model->offset(index));
|
||||
offset = usprintf("| %08X ", model->base(index));
|
||||
}
|
||||
|
||||
report.push_back(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue