diff --git a/breft_editor/texture.cpp b/breft_editor/texture.cpp index 6b8203b..6849065 100644 --- a/breft_editor/texture.cpp +++ b/breft_editor/texture.cpp @@ -465,7 +465,7 @@ QImage ConvertTextureToImage( const QByteArray &ba, quint32 w, quint32 h, quint3 ret = TPL_ConvertCMPToBitMap( (quint8*)ba.constData(), &bitmapdata, w, h ); break; default: - qWarning() << "ConvertTextureToImage -> Unsupported format" << hex << format; + qWarning() << "ConvertTextureToImage -> Unsupported format" << Qt::hex << format; return QImage(); break; } diff --git a/nandExtract/black.png b/nandExtract/black.png index 512bae2..408dc94 100644 Binary files a/nandExtract/black.png and b/nandExtract/black.png differ diff --git a/nandExtract/blue.png b/nandExtract/blue.png index 4fbfe36..12a6813 100644 Binary files a/nandExtract/blue.png and b/nandExtract/blue.png differ diff --git a/nandExtract/green.png b/nandExtract/green.png index 62d6ffb..d702427 100644 Binary files a/nandExtract/green.png and b/nandExtract/green.png differ diff --git a/nandExtract/grey.png b/nandExtract/grey.png index cc0ee27..d5ee027 100644 Binary files a/nandExtract/grey.png and b/nandExtract/grey.png differ diff --git a/nandExtract/icon.png b/nandExtract/icon.png index 11dc892..8aa312c 100644 Binary files a/nandExtract/icon.png and b/nandExtract/icon.png differ diff --git a/nandExtract/nandExtract.pro b/nandExtract/nandExtract.pro deleted file mode 100644 index f590f2f..0000000 --- a/nandExtract/nandExtract.pro +++ /dev/null @@ -1,32 +0,0 @@ -# ------------------------------------------------- -# Project created by QtCreator 2010-12-06T03:40:50 -# ------------------------------------------------- -QT = core gui widgets - -TARGET = nandExtract -TEMPLATE = app -SOURCES += main.cpp \ - nandwindow.cpp \ - ../WiiQt/blocks0to7.cpp \ - ../WiiQt/tiktmd.cpp \ - ../WiiQt/nandbin.cpp \ - ../WiiQt/tools.cpp \ - ../WiiQt/aes.c \ - ../WiiQt/sha1.c \ - nandthread.cpp \ - boot2infodialog.cpp \ - ../WiiQt/nandspare.cpp - -HEADERS += nandwindow.h \ - ../WiiQt/tiktmd.h \ - ../WiiQt/nandbin.h \ - ../WiiQt/tools.h \ - nandthread.h \ - boot2infodialog.h \ - ../WiiQt/nandspare.h - -FORMS += nandwindow.ui \ - boot2infodialog.ui - -RESOURCES += \ - rc.qrc diff --git a/nandExtract/nandwindow.cpp b/nandExtract/nandwindow.cpp index a882433..96a188a 100644 --- a/nandExtract/nandwindow.cpp +++ b/nandExtract/nandwindow.cpp @@ -7,7 +7,7 @@ NandWindow::NandWindow( QWidget *parent ) : QMainWindow( parent ), ui( new Ui::N { ui->setupUi( this ); ui->mainToolBar->setVisible( false ); - this->setWindowTitle( "NAND Extract r" ); + this->setWindowTitle( "NAND Extract" ); //setup the block map SetUpBlockMap(); @@ -19,14 +19,14 @@ NandWindow::NandWindow( QWidget *parent ) : QMainWindow( parent ), ui( new Ui::N LoadSettings(); QFontMetrics fm( fontMetrics() ); - ui->treeWidget->header()->resizeSection( 0, fm.width( QString( 22, 'W' ) ) );//name - ui->treeWidget->header()->resizeSection( 1, fm.width( "WWWWW" ) );//entry # - ui->treeWidget->header()->resizeSection( 2, fm.width( "WWWWW" ) );//size - ui->treeWidget->header()->resizeSection( 3, fm.width( "WWWWWWWWW" ) );//uid - ui->treeWidget->header()->resizeSection( 4, fm.width( "WWWWWWWWW" ) );//gid - ui->treeWidget->header()->resizeSection( 5, fm.width( "WWWWWWWWW" ) );//x3 - ui->treeWidget->header()->resizeSection( 6, fm.width( "WWWWW" ) );//mode - ui->treeWidget->header()->resizeSection( 7, fm.width( "WWWWW" ) );//attr + ui->treeWidget->header()->resizeSection( 0, fm.horizontalAdvance( QString( 22, 'W' ) ) );//name + ui->treeWidget->header()->resizeSection( 1, fm.horizontalAdvance( "WWWWW" ) );//entry # + ui->treeWidget->header()->resizeSection( 2, fm.horizontalAdvance( "WWWWW" ) );//size + ui->treeWidget->header()->resizeSection( 3, fm.horizontalAdvance( "WWWWWWWWW" ) );//uid + ui->treeWidget->header()->resizeSection( 4, fm.horizontalAdvance( "WWWWWWWWW" ) );//gid + ui->treeWidget->header()->resizeSection( 5, fm.horizontalAdvance( "WWWWWWWWW" ) );//x3 + ui->treeWidget->header()->resizeSection( 6, fm.horizontalAdvance( "WWWWW" ) );//mode + ui->treeWidget->header()->resizeSection( 7, fm.horizontalAdvance( "WWWWW" ) );//attr connect( &nThread, SIGNAL( SendError( QString ) ), this, SLOT( GetError( QString ) ) ); connect( &nThread, SIGNAL( SendText( QString ) ), this, SLOT( GetStatusUpdate( QString ) ) ); @@ -264,7 +264,7 @@ void NandWindow::GetBlocksfromNand() quint32 freeSpace = 0; QList clusters = nThread.GetFats(); - if( !clusters.size() == 0x8000 ) + if( !(clusters.size() == 0x8000) ) { QMessageBox::warning( this, tr( "Error" ), tr( "Expected 0x8000 clusters from the nand, but got %1 instead!" ).arg( clusters.size(), 0, 16 ), QMessageBox::Ok ); return; @@ -318,7 +318,7 @@ void NandWindow::DrawBlockMap( QList newFile ) { if( blocks.size() != 0x1000 ) { - qWarning() << "NandWindow::DrawBlockMap -> current blocks are fucked up, son" << hex << blocks.size(); + qWarning() << "NandWindow::DrawBlockMap -> current blocks are fucked up, son" << Qt::hex << blocks.size(); return; } QPixmap blue( ":/blue.png" ); diff --git a/nandExtract/nandwindow.ui b/nandExtract/nandwindow.ui index ec586bc..fbe97ae 100644 --- a/nandExtract/nandwindow.ui +++ b/nandExtract/nandwindow.ui @@ -18,17 +18,17 @@ 0 - + 2 - Qt::Vertical + Qt::Orientation::Vertical - Qt::CustomContextMenu + Qt::ContextMenuPolicy::CustomContextMenu @@ -73,19 +73,16 @@ - Qt::ScrollBarAlwaysOn + Qt::ScrollBarPolicy::ScrollBarAsNeeded false - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - QPainter::HighQualityAntialiasing|QPainter::SmoothPixmapTransform|QPainter::TextAntialiasing + Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop - QGraphicsView::CacheBackground + QGraphicsView::CacheModeFlag::CacheBackground @@ -111,7 +108,7 @@ 0 0 1180 - 27 + 30 @@ -142,7 +139,7 @@ - Open Nand... + &Open Nand... Ctrl+O @@ -156,7 +153,7 @@ true - Show Usage... + &Show Usage... Ctrl+U @@ -164,7 +161,7 @@ - Boot2 + &Boot2 Ctrl+B @@ -175,7 +172,7 @@ true - Fix Names For FAT + &Fix Names For FAT diff --git a/nandExtract/pink.png b/nandExtract/pink.png index 138a116..f228e1b 100644 Binary files a/nandExtract/pink.png and b/nandExtract/pink.png differ