mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-20 10:15:21 -04:00
UEFIExtract 0.3.1
- added return value as bit mask
This commit is contained in:
parent
701717c554
commit
af63fe9852
4 changed files with 41 additions and 45 deletions
|
@ -40,20 +40,10 @@ UINT8 UEFIExtract::init(const QString & path)
|
|||
QByteArray buffer = inputFile.readAll();
|
||||
inputFile.close();
|
||||
|
||||
UINT8 result = ffsEngine->parseImageFile(buffer);
|
||||
if (result)
|
||||
return result;
|
||||
|
||||
return ERR_SUCCESS;
|
||||
return ffsEngine->parseImageFile(buffer);
|
||||
}
|
||||
|
||||
UINT8 UEFIExtract::extract(QString guid)
|
||||
{
|
||||
QModelIndex rootIndex = ffsEngine->treeModel()->index(0, 0);
|
||||
|
||||
UINT8 result = ffsEngine->dump(rootIndex, fileInfo.fileName().append(".dump"), guid);
|
||||
if (result)
|
||||
return result;
|
||||
|
||||
return ERR_SUCCESS;
|
||||
return ffsEngine->dump(ffsEngine->treeModel()->index(0, 0), fileInfo.fileName().append(".dump"), guid);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue