mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-14 15:15:04 -04:00
Big structure update
- files split into common and app-specific ones - messages from parser and finder separated - ffsEngine split into multiple classes to reduce complexity - still no image rebuild
This commit is contained in:
parent
1f0a80d035
commit
2e788a8a1a
64 changed files with 477 additions and 2469 deletions
30
common/peimage.cpp
Normal file
30
common/peimage.cpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* peimage.cpp
|
||||
|
||||
Copyright (c) 2015, Nikolaj Schlej. All rights reserved.
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
*/
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "peimage.h"
|
||||
|
||||
QString machineTypeToQString(UINT16 machineType)
|
||||
{
|
||||
switch (machineType){
|
||||
case IMAGE_FILE_MACHINE_AMD64: return QObject::tr("x86-64");
|
||||
case IMAGE_FILE_MACHINE_ARM: return QObject::tr("ARM");
|
||||
case IMAGE_FILE_MACHINE_ARMV7: return QObject::tr("ARMv7");
|
||||
case IMAGE_FILE_MACHINE_EBC: return QObject::tr("EBC");
|
||||
case IMAGE_FILE_MACHINE_I386: return QObject::tr("x86");
|
||||
case IMAGE_FILE_MACHINE_IA64: return QObject::tr("IA64");
|
||||
case IMAGE_FILE_MACHINE_THUMB: return QObject::tr("Thumb");
|
||||
default: return QObject::tr("Unknown %1h").hexarg2(machineType, 4);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue