mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
UEFIPatch 0.2.2
-corrected typo in program name -compiled with new ffsEngine -hex values are printed uppercase
This commit is contained in:
parent
a400c2ef8f
commit
1513dfcf4e
@ -62,7 +62,7 @@ UINT8 UEFIPatch::patchFromFile(QString path)
|
|||||||
// Use sharp sign as commentary
|
// Use sharp sign as commentary
|
||||||
if (line.count() == 0 || line[0] == '#')
|
if (line.count() == 0 || line[0] == '#')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
QList<QByteArray> list = line.split(' ');
|
QList<QByteArray> list = line.split(' ');
|
||||||
if (list.count() < 3)
|
if (list.count() < 3)
|
||||||
continue;
|
continue;
|
||||||
|
@ -21,7 +21,7 @@ int main(int argc, char *argv[])
|
|||||||
QCoreApplication a(argc, argv);
|
QCoreApplication a(argc, argv);
|
||||||
a.setOrganizationName("CodeRush");
|
a.setOrganizationName("CodeRush");
|
||||||
a.setOrganizationDomain("coderush.me");
|
a.setOrganizationDomain("coderush.me");
|
||||||
a.setApplicationName("UEFIExtract");
|
a.setApplicationName("UEFIPatch");
|
||||||
|
|
||||||
UEFIPatch w;
|
UEFIPatch w;
|
||||||
UINT8 result = ERR_SUCCESS;
|
UINT8 result = ERR_SUCCESS;
|
||||||
@ -31,7 +31,7 @@ int main(int argc, char *argv[])
|
|||||||
result = w.patchFromFile(a.arguments().at(1));
|
result = w.patchFromFile(a.arguments().at(1));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::cout << "UEFIPatch 0.2.1 - UEFI image file patching utility" << std::endl << std::endl <<
|
std::cout << "UEFIPatch 0.2.2 - UEFI image file patching utility" << std::endl << std::endl <<
|
||||||
"Usage: UEFIPatch image_file" << std::endl << std::endl <<
|
"Usage: UEFIPatch image_file" << std::endl << std::endl <<
|
||||||
"Patches will be read from patches.txt file\n";
|
"Patches will be read from patches.txt file\n";
|
||||||
return ERR_SUCCESS;
|
return ERR_SUCCESS;
|
||||||
@ -73,4 +73,4 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -197,6 +197,7 @@ void FfsEngine::msg(const QString & message, const QModelIndex & index)
|
|||||||
#ifndef _CONSOLE
|
#ifndef _CONSOLE
|
||||||
messageItems.enqueue(MessageListItem(message, NULL, 0, index));
|
messageItems.enqueue(MessageListItem(message, NULL, 0, index));
|
||||||
#else
|
#else
|
||||||
|
(void) index;
|
||||||
std::cout << message.toLatin1().constData() << std::endl;
|
std::cout << message.toLatin1().constData() << std::endl;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -3815,7 +3816,7 @@ UINT8 FfsEngine::patchViaOffset(QByteArray & data, const UINT32 offset, const QB
|
|||||||
.arg(replacePattern.length())
|
.arg(replacePattern.length())
|
||||||
.hexarg(offset, 8)
|
.hexarg(offset, 8)
|
||||||
.arg(QString(data.mid(offset, replacePattern.length()).toHex()).toUpper())
|
.arg(QString(data.mid(offset, replacePattern.length()).toHex()).toUpper())
|
||||||
.arg(QString(replacePattern.toHex())).toUpper());
|
.arg(QString(replacePattern.toHex()).toUpper()));
|
||||||
data = body;
|
data = body;
|
||||||
return ERR_SUCCESS;
|
return ERR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user