*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/nandbin.cpp \
../WiiQt/tools.cpp \
../WiiQt/savebanner.cpp \
../WiiQt/aes.c \
../WiiQt/sha1.c \
nandthread.cpp \

View File

@ -951,12 +951,15 @@ void MainWindow::on_actionFormat_triggered()
QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) != QMessageBox::Yes )
return;
setCursor( Qt::BusyCursor );
ShowMessage( "Formatting nand..." );
if( !nand.Format() )
{
unsetCursor();
ShowMessage( "<b>Error! This nand may be broken now :(</b>" );
return;
}
unsetCursor();
//add folders to root
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();
return;
}
setCursor( Qt::BusyCursor );
if( !nand.CreateNew( ui->lineEdit_dest->text(), keys, boots, BadBlocks() ) )
{
qDebug() << "error creating nand.bin";
unsetCursor();
keys.clear();
boots.clear();
return;
@ -196,10 +198,12 @@ void NewNandBin::on_buttonBox_accepted()
//qDebug() << "created nand, trying to add default entries";
if( !CreateDefaultEntries() )
{
unsetCursor();
keys.clear();
boots.clear();
return;
}
unsetCursor();
ret = ui->lineEdit_dest->text();
}