mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-25 18:46:56 +01:00
This commit is contained in:
parent
dd38acc53e
commit
a8c39270b8
@ -3,6 +3,7 @@
|
||||
NandThread::NandThread( QObject *parent ) : QThread( parent )
|
||||
{
|
||||
abort = false;
|
||||
fatNames = false;
|
||||
itemToExtract = NULL;
|
||||
|
||||
connect( &nandBin, SIGNAL( SendError( QString ) ), this, SLOT( GetError( QString ) ) );
|
||||
@ -40,7 +41,16 @@ bool NandThread::SetPath( const QString &path )
|
||||
emit SendError( tr( "Wait till the current job is done" ) );
|
||||
return false;
|
||||
}
|
||||
return nandBin.SetPath( path );
|
||||
if( !nandBin.SetPath( path ) )
|
||||
return false;
|
||||
|
||||
nandBin.SetFixNamesForFAT( fatNames );
|
||||
return true;
|
||||
}
|
||||
|
||||
void NandThread::SetFixNamesForFat( bool fix )
|
||||
{
|
||||
nandBin.SetFixNamesForFAT( fix );
|
||||
}
|
||||
|
||||
const Blocks0to7 NandThread::BootBlocks()
|
||||
|
@ -34,6 +34,8 @@ public:
|
||||
const QList<Boot2Info> Boot2Infos();
|
||||
quint8 Boot1Version();
|
||||
|
||||
void SetFixNamesForFat( bool fix = true );
|
||||
|
||||
protected:
|
||||
void run();
|
||||
|
||||
@ -56,6 +58,7 @@ private:
|
||||
quint32 idx;
|
||||
|
||||
bool abort;
|
||||
bool fatNames;
|
||||
|
||||
//count the number of files in a given folder
|
||||
quint32 FileCount( QTreeWidgetItem *item );
|
||||
|
@ -456,3 +456,8 @@ void NandWindow::on_actionBoot2_triggered()
|
||||
Boot2InfoDialog d( this, b, boot1 );
|
||||
d.exec();
|
||||
}
|
||||
|
||||
void NandWindow::on_actionFix_Names_For_FAT_triggered( bool checked )
|
||||
{
|
||||
nThread.SetFixNamesForFat( checked );
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ public slots:
|
||||
void ThreadIsDone();
|
||||
|
||||
private slots:
|
||||
void on_actionFix_Names_For_FAT_triggered(bool checked);
|
||||
void on_actionBoot2_triggered();
|
||||
void on_treeWidget_currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
|
||||
void on_actionShow_Usage_triggered();
|
||||
|
@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>NandWindow</string>
|
||||
<string>NAND Extract</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
@ -126,6 +126,7 @@
|
||||
</property>
|
||||
<addaction name="actionShow_Usage"/>
|
||||
<addaction name="actionBoot2"/>
|
||||
<addaction name="actionFix_Names_For_FAT"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
<addaction name="menuInfo"/>
|
||||
@ -169,6 +170,14 @@
|
||||
<string>Ctrl+B</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFix_Names_For_FAT">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Fix Names For FAT</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
|
Loading…
Reference in New Issue
Block a user