mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-22 05:29:14 +01:00
*ohneschwanzenegger: use busy cursor when writing a 500MiB file
*nandExtract: remove unused save functions git-svn-id: http://wiiqt.googlecode.com/svn/trunk@102 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
parent
f14dcde52f
commit
dbeaa3ea98
@ -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 \
|
||||||
|
@ -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 )
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user