mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-22 13:29:14 +01:00
get nandBinCheck to compile with QT5
This commit is contained in:
parent
df68fc7fb5
commit
a18bbb98cd
@ -1,7 +1,7 @@
|
|||||||
#ifndef INCLUDES_H
|
#ifndef INCLUDES_H
|
||||||
#define INCLUDES_H
|
#define INCLUDES_H
|
||||||
|
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QtGui/QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QTreeWidget>
|
#include <QTreeWidget>
|
||||||
#include <QTreeWidgetItem>
|
#include <QTreeWidgetItem>
|
||||||
#include <qpushbutton.h>
|
#include <qpushbutton.h>
|
||||||
|
@ -111,7 +111,7 @@ void SettingTxtDialog::on_buttonBox_accepted()
|
|||||||
"VIDEO=" + ui->lineEdit_video->text() + "\r\n" +
|
"VIDEO=" + ui->lineEdit_video->text() + "\r\n" +
|
||||||
"GAME=" + ui->lineEdit_game->text() + "\r\n";
|
"GAME=" + ui->lineEdit_game->text() + "\r\n";
|
||||||
|
|
||||||
ret = s.toAscii();
|
ret = s.toLatin1();
|
||||||
ret = PaddedByteArray( ret, 0x100 );
|
ret = PaddedByteArray( ret, 0x100 );
|
||||||
//hexdump( ret );
|
//hexdump( ret );
|
||||||
ret = LolCrypt( ret );
|
ret = LolCrypt( ret );
|
||||||
|
@ -121,7 +121,7 @@ void SharedContentMap::AddEntry( const QString &app, const QByteArray &hash )
|
|||||||
qWarning() << "SharedContentMap::AddEntry -> bas size" << hex << app.size() << hash.size();
|
qWarning() << "SharedContentMap::AddEntry -> bas size" << hex << app.size() << hash.size();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
data += app.toAscii() + hash;
|
data += app.toLatin1() + hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QByteArray SharedContentMap::Hash( quint16 i )
|
const QByteArray SharedContentMap::Hash( quint16 i )
|
||||||
|
@ -1315,7 +1315,7 @@ int main( int argc, char *argv[] )
|
|||||||
origColor = GetColor();
|
origColor = GetColor();
|
||||||
hConsole = GetStdHandle( STD_OUTPUT_HANDLE );
|
hConsole = GetStdHandle( STD_OUTPUT_HANDLE );
|
||||||
#endif
|
#endif
|
||||||
qInstallMsgHandler( DebugHandler );
|
// qInstallMessageHandler( DebugHandler );
|
||||||
|
|
||||||
args = QCoreApplication::arguments();
|
args = QCoreApplication::arguments();
|
||||||
if( args.contains( "-nocolor", Qt::CaseInsensitive ) )
|
if( args.contains( "-nocolor", Qt::CaseInsensitive ) )
|
||||||
|
@ -13,6 +13,8 @@ CONFIG -= app_bundle
|
|||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|
||||||
|
QT += core gui
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
../WiiQt/blocks0to7.cpp \
|
../WiiQt/blocks0to7.cpp \
|
||||||
|
Loading…
Reference in New Issue
Block a user