mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-23 03:27:10 -04:00
Implement external patches.txt path for UEFIPatch
This commit is contained in:
parent
f383646033
commit
66c9d4a2cf
3 changed files with 14 additions and 9 deletions
|
@ -25,15 +25,15 @@ UEFIPatch::~UEFIPatch()
|
|||
delete ffsEngine;
|
||||
}
|
||||
|
||||
UINT8 UEFIPatch::patchFromFile(QString path)
|
||||
UINT8 UEFIPatch::patchFromFile(QString path, QString patches)
|
||||
{
|
||||
QFileInfo patchInfo = QFileInfo("patches.txt");
|
||||
QFileInfo patchInfo = QFileInfo(patches);
|
||||
|
||||
if (!patchInfo.exists())
|
||||
return ERR_INVALID_FILE;
|
||||
|
||||
QFile file;
|
||||
file.setFileName("patches.txt");
|
||||
file.setFileName(patches);
|
||||
|
||||
if (!file.open(QFile::ReadOnly | QFile::Text))
|
||||
return ERR_INVALID_FILE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue