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