mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-22 00:59:18 +01:00
*ohneschwanzenegger: use busy cursor when writing a 500MiB file
*nandExtract: remove unused save functions
This commit is contained in:
parent
eeb3feb955
commit
64af2c61f5
@ -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 \
|
||||
|
@ -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 )
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user