Skip to content

Commit

Permalink
Fix: 2021-10-27
Browse files Browse the repository at this point in the history
  • Loading branch information
horsicq committed Oct 27, 2021
1 parent b1cdd5d commit c00658f
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion xbinary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void XBinary::setType(int nType)
g_nType=nType;
}

int XBinary::getType()
qint32 XBinary::getType()
{
return g_nType;
}
Expand Down
4 changes: 2 additions & 2 deletions xbinary.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static const double D_ENTROPY_THRESHOLD; // 6.5
virtual MODE getMode();

void setType(int nType);
virtual int getType();
virtual qint32 getType();
virtual QString typeIdToString(int nType);
QString getTypeAsString();

Expand Down Expand Up @@ -1154,7 +1154,7 @@ public slots:
QString g_sOsVersion;
MODE g_mode;
QString g_sVersion;
int g_nType;
qint32 g_nType;
FT g_fileType;
bool g_bLog;
qint64 g_nSize;
Expand Down
2 changes: 1 addition & 1 deletion xcom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ XBinary::FT XCOM::getFileType()
return FT_COM;
}

int XCOM::getType()
qint32 XCOM::getType()
{
return TYPE_EXE;
}
Expand Down
2 changes: 1 addition & 1 deletion xcom.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class XCOM : public XBinary
virtual qint64 getEntryPointOffset(_MEMORY_MAP *pMemoryMap);
virtual qint64 getImageSize();
virtual FT getFileType();
virtual int getType();
virtual qint32 getType();
virtual QString typeIdToString(int nType);
};

Expand Down
2 changes: 1 addition & 1 deletion xelf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3949,7 +3949,7 @@ QString XELF::getArch()
return getMachinesS().value(getHdr32_machine(),tr("Unknown"));
}

int XELF::getType()
qint32 XELF::getType()
{
int nResult=TYPE_UNKNOWN;

Expand Down
2 changes: 1 addition & 1 deletion xelf.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class XELF : public XBinary

virtual MODE getMode();
virtual QString getArch();
virtual int getType();
virtual qint32 getType();
virtual FT getFileType();
virtual OSNAME getOsName();
virtual QString typeIdToString(int nType);
Expand Down
2 changes: 1 addition & 1 deletion xle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ XBinary::FT XLE::getFileType()
return result;
}

int XLE::getType()
qint32 XLE::getType()
{
return TYPE_EXE; // TODO
}
Expand Down
2 changes: 1 addition & 1 deletion xle.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class XLE : public XMSDOS
virtual bool isBigEndian();
virtual qint64 getEntryPointOffset(_MEMORY_MAP *pMemoryMap);
virtual FT getFileType();
virtual int getType();
virtual qint32 getType();
virtual QString typeIdToString(int nType);

static QMap<quint64,QString> getImageLEMagics();
Expand Down
7 changes: 6 additions & 1 deletion xmach.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4319,7 +4319,7 @@ XBinary::FT XMACH::getFileType()
return result;
}

int XMACH::getType()
qint32 XMACH::getType()
{
int nResult=TYPE_UNKNOWN;

Expand Down Expand Up @@ -4476,6 +4476,7 @@ XBinary::OSINFO XMACH::getOsInfo()
{
result.osName=OSNAME_MAC_OS_X;
}
// TODO !
}
else if((result.osName==OSNAME_IPHONEOS)||(result.osName==OSNAME_IOS)||(result.osName==OSNAME_IPADOS))
{
Expand Down Expand Up @@ -4504,6 +4505,10 @@ XBinary::OSINFO XMACH::getOsInfo()
{
result.osName=OSNAME_IPHONEOS;
}
else
{
result.osName=OSNAME_IOS;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion xmach.h
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ class XMACH : public XBinary
virtual MODE getMode();
virtual QString getArch();
virtual FT getFileType();
virtual int getType();
virtual qint32 getType();
virtual OSINFO getOsInfo();
virtual QString typeIdToString(int nType);

Expand Down
2 changes: 1 addition & 1 deletion xmsdos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ XBinary::FT XMSDOS::getFileType()
return FT_MSDOS;
}

int XMSDOS::getType()
qint32 XMSDOS::getType()
{
return TYPE_EXE;
}
Expand Down
2 changes: 1 addition & 1 deletion xmsdos.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class XMSDOS : public XBinary
virtual QString getArch();
virtual bool isBigEndian();
virtual FT getFileType();
virtual int getType();
virtual qint32 getType();
virtual OSINFO getOsInfo();
virtual QString typeIdToString(int nType);
};
Expand Down
2 changes: 1 addition & 1 deletion xne.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ XBinary::FT XNE::getFileType()
return FT_NE;
}

int XNE::getType()
qint32 XNE::getType()
{
return TYPE_EXE; // TODO
}
Expand Down
2 changes: 1 addition & 1 deletion xne.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class XNE : public XMSDOS
virtual bool isBigEndian();
virtual qint64 getEntryPointOffset(_MEMORY_MAP *pMemoryMap);
virtual FT getFileType();
virtual int getType();
virtual qint32 getType();
virtual QString typeIdToString(int nType);
};

Expand Down
2 changes: 1 addition & 1 deletion xpe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ XBinary::FT XPE::getFileType()
return result;
}

int XPE::getType()
qint32 XPE::getType()
{
TYPE result=TYPE_APPLICATION;

Expand Down
2 changes: 1 addition & 1 deletion xpe.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class XPE : public XMSDOS
virtual OSINFO getOsInfo();

virtual FT getFileType();
virtual int getType();
virtual qint32 getType();
virtual QString typeIdToString(int nType);

virtual bool isSigned();
Expand Down

0 comments on commit c00658f

Please sign in to comment.