mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Fix #38
- added a flag to use FV GUIDs as folder names even if they have non-empty text fields. Thanks to OsxReverser for #38.
This commit is contained in:
parent
2443560c1d
commit
5fd8edf0be
@ -85,7 +85,11 @@ STATUS FfsDumper::recursiveDump(const QModelIndex & index, const QString & path,
|
|||||||
UINT8 result;
|
UINT8 result;
|
||||||
for (int i = 0; i < model->rowCount(index); i++) {
|
for (int i = 0; i < model->rowCount(index); i++) {
|
||||||
QModelIndex childIndex = index.child(i, 0);
|
QModelIndex childIndex = index.child(i, 0);
|
||||||
QString childPath = QString("%1/%2 %3").arg(path).arg(i).arg(model->text(childIndex).isEmpty() ? model->name(childIndex) : model->text(childIndex));
|
bool useText = FALSE;
|
||||||
|
if (model->type(childIndex) != Types::Volume)
|
||||||
|
useText = !model->text(childIndex).isEmpty();
|
||||||
|
|
||||||
|
QString childPath = QString("%1/%2 %3").arg(path).arg(i).arg(useText ? model->text(childIndex) : model->name(childIndex));
|
||||||
result = recursiveDump(childIndex, childPath, guid);
|
result = recursiveDump(childIndex, childPath, guid);
|
||||||
if (result)
|
if (result)
|
||||||
return result;
|
return result;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* ffsparser.h
|
/* parsingdata.h
|
||||||
|
|
||||||
Copyright (c) 2015, Nikolaj Schlej. All rights reserved.
|
Copyright (c) 2015, Nikolaj Schlej. All rights reserved.
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
@ -9,7 +9,6 @@ http://opensource.org/licenses/bsd-license.php
|
|||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
|
|
||||||
Parsing data is an information needed for each level of image reconstruction
|
Parsing data is an information needed for each level of image reconstruction
|
||||||
routines without the need of backward traversal
|
routines without the need of backward traversal
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user