get nandBinCheck to compile with QT5

This commit is contained in:
Antonio SJ Musumeci 2014-07-09 17:49:58 -04:00
parent df68fc7fb5
commit a18bbb98cd
5 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#ifndef INCLUDES_H
#define INCLUDES_H
#include <QtGui/QApplication>
#include <QApplication>
#include <QAction>
#include <QBuffer>
#include <QDialog>
@ -25,7 +25,7 @@
#include <QtDebug>
#include <QTimer>
#include <QtGui>
#include <QtGui/QMainWindow>
#include <QMainWindow>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <qpushbutton.h>

View File

@ -111,7 +111,7 @@ void SettingTxtDialog::on_buttonBox_accepted()
"VIDEO=" + ui->lineEdit_video->text() + "\r\n" +
"GAME=" + ui->lineEdit_game->text() + "\r\n";
ret = s.toAscii();
ret = s.toLatin1();
ret = PaddedByteArray( ret, 0x100 );
//hexdump( ret );
ret = LolCrypt( ret );

View File

@ -121,7 +121,7 @@ void SharedContentMap::AddEntry( const QString &app, const QByteArray &hash )
qWarning() << "SharedContentMap::AddEntry -> bas size" << hex << app.size() << hash.size();
return;
}
data += app.toAscii() + hash;
data += app.toLatin1() + hash;
}
const QByteArray SharedContentMap::Hash( quint16 i )

View File

@ -1315,7 +1315,7 @@ int main( int argc, char *argv[] )
origColor = GetColor();
hConsole = GetStdHandle( STD_OUTPUT_HANDLE );
#endif
qInstallMsgHandler( DebugHandler );
// qInstallMessageHandler( DebugHandler );
args = QCoreApplication::arguments();
if( args.contains( "-nocolor", Qt::CaseInsensitive ) )

View File

@ -13,6 +13,8 @@ CONFIG -= app_bundle
TEMPLATE = app
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
SOURCES += main.cpp \
../WiiQt/blocks0to7.cpp \