*ohneschwanzenegger: use busy cursor when writing a 500MiB file

*nandExtract: remove unused save functions
This commit is contained in:
giantpune 2011-05-29 01:01:11 +00:00
parent eeb3feb955
commit 64af2c61f5
3 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,6 @@ SOURCES += main.cpp \
../WiiQt/tiktmd.cpp \ ../WiiQt/tiktmd.cpp \
../WiiQt/nandbin.cpp \ ../WiiQt/nandbin.cpp \
../WiiQt/tools.cpp \ ../WiiQt/tools.cpp \
../WiiQt/savebanner.cpp \
../WiiQt/aes.c \ ../WiiQt/aes.c \
../WiiQt/sha1.c \ ../WiiQt/sha1.c \
nandthread.cpp \ nandthread.cpp \

View File

@ -951,12 +951,15 @@ void MainWindow::on_actionFormat_triggered()
QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) != QMessageBox::Yes ) QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) != QMessageBox::Yes )
return; return;
setCursor( Qt::BusyCursor );
ShowMessage( "Formatting nand..." ); ShowMessage( "Formatting nand..." );
if( !nand.Format() ) if( !nand.Format() )
{ {
unsetCursor();
ShowMessage( "<b>Error! This nand may be broken now :(</b>" ); ShowMessage( "<b>Error! This nand may be broken now :(</b>" );
return; return;
} }
unsetCursor();
//add folders to root //add folders to root
if( !nand.CreateEntry( "/sys", 0, 0, NAND_DIR, NAND_RW, NAND_RW, 0 ) if( !nand.CreateEntry( "/sys", 0, 0, NAND_DIR, NAND_RW, NAND_RW, 0 )

View File

@ -186,9 +186,11 @@ void NewNandBin::on_buttonBox_accepted()
boots.clear(); boots.clear();
return; return;
} }
setCursor( Qt::BusyCursor );
if( !nand.CreateNew( ui->lineEdit_dest->text(), keys, boots, BadBlocks() ) ) if( !nand.CreateNew( ui->lineEdit_dest->text(), keys, boots, BadBlocks() ) )
{ {
qDebug() << "error creating nand.bin"; qDebug() << "error creating nand.bin";
unsetCursor();
keys.clear(); keys.clear();
boots.clear(); boots.clear();
return; return;
@ -196,10 +198,12 @@ void NewNandBin::on_buttonBox_accepted()
//qDebug() << "created nand, trying to add default entries"; //qDebug() << "created nand, trying to add default entries";
if( !CreateDefaultEntries() ) if( !CreateDefaultEntries() )
{ {
unsetCursor();
keys.clear(); keys.clear();
boots.clear(); boots.clear();
return; return;
} }
unsetCursor();
ret = ui->lineEdit_dest->text(); ret = ui->lineEdit_dest->text();
} }