mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-18 17:25:19 -04:00
NE Alpha 40
This commit is contained in:
parent
7b18f346dd
commit
0f0bc32a42
25 changed files with 2012 additions and 137 deletions
|
@ -11,6 +11,7 @@ WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
*/
|
||||
|
||||
#include "ffs.h"
|
||||
#include "guiddatabase.h"
|
||||
|
||||
// This is a workaround for the lack of static std::vector initializer before C++11
|
||||
const UByteArray FFSv2VolumesInt[] = {
|
||||
|
@ -43,8 +44,14 @@ UINT32 uint24ToUint32(const UINT8* ffsSize)
|
|||
return *(UINT32*)ffsSize & 0x00FFFFFF;
|
||||
}
|
||||
|
||||
UString guidToUString(const EFI_GUID & guid)
|
||||
UString guidToUString(const EFI_GUID & guid, bool convertToString)
|
||||
{
|
||||
if (convertToString) {
|
||||
UString readableName = guidDatabaseLookup(guid);
|
||||
if (!readableName.isEmpty())
|
||||
return readableName;
|
||||
}
|
||||
|
||||
return usprintf("%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X",
|
||||
guid.Data1,
|
||||
guid.Data2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue