mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-22 05:29:14 +01:00
Port symbolizer to Qt 6
This commit is contained in:
parent
f8ebef3d9d
commit
6c36e10c18
@ -16,7 +16,7 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QQueue>
|
#include <QQueue>
|
||||||
#include <QRegExp>
|
#include <QRegularExpression>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
Ui::NgDialog *ui;
|
Ui::NgDialog *ui;
|
||||||
|
|
||||||
QRegExp hex;
|
QRegularExpression hex;
|
||||||
|
|
||||||
bool ValidNGID();
|
bool ValidNGID();
|
||||||
bool ValidNGKeyID();
|
bool ValidNGKeyID();
|
||||||
|
@ -14,7 +14,7 @@ bool ElfParser::ParseText( const QString &str )
|
|||||||
QMap< QString, QStringList >rawFiles;
|
QMap< QString, QStringList >rawFiles;
|
||||||
QMap< QString, QStringList >rawSections;
|
QMap< QString, QStringList >rawSections;
|
||||||
QMap< QString, QStringList >rawSymbolTable;
|
QMap< QString, QStringList >rawSymbolTable;
|
||||||
QStringList lines = str.split( '\n', QString::KeepEmptyParts );
|
QStringList lines = str.split( '\n', Qt::KeepEmptyParts );
|
||||||
quint32 lineCnt = lines.size();
|
quint32 lineCnt = lines.size();
|
||||||
for( quint32 i = 0; i < lineCnt; i++ )
|
for( quint32 i = 0; i < lineCnt; i++ )
|
||||||
{
|
{
|
||||||
@ -388,7 +388,7 @@ bool ElfParser::ParseFileText( const QStringList &strs, const QStringList §i
|
|||||||
{
|
{
|
||||||
qDebug() << "ref.off is busted 1" << name << str;
|
qDebug() << "ref.off is busted 1" << name << str;
|
||||||
|
|
||||||
qDebug() << ::hex << refOff << fStart;
|
qDebug() << Qt::hex << refOff << fStart;
|
||||||
exit( 0 );
|
exit( 0 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ private:
|
|||||||
// takes each file and separetes it into functions
|
// takes each file and separetes it into functions
|
||||||
bool ParseFileText( const QStringList &strs, const QStringList §ionStrs, const QStringList &symbolStrs, File &file );
|
bool ParseFileText( const QStringList &strs, const QStringList §ionStrs, const QStringList &symbolStrs, File &file );
|
||||||
|
|
||||||
QRegExp funcStart;
|
QRegularExpression funcStart;
|
||||||
bool IsFunctionStart( const QString &str, quint32 *start = NULL );
|
bool IsFunctionStart( const QString &str, quint32 *start = NULL );
|
||||||
|
|
||||||
// extract function name from the line that starts it
|
// extract function name from the line that starts it
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
|
||||||
QT += core
|
QT += core\
|
||||||
|
widgets
|
||||||
|
|
||||||
#QT -= gui
|
#QT -= gui
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user