mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-22 21:29:15 +01:00
* add a menu in the NUS tool to access setting.txt from the nand dump
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@9 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
parent
4ff87cd24e
commit
d9ecb76202
@ -222,7 +222,7 @@ void MainWindow::on_pushButton_GetTitle_clicked()
|
|||||||
}
|
}
|
||||||
else if( ui->radioButton_nand->isChecked() )
|
else if( ui->radioButton_nand->isChecked() )
|
||||||
{
|
{
|
||||||
if( !nand.SetPath( ui->lineEdit_nandPath->text() ) )
|
if( nand.GetPath() != ui->lineEdit_nandPath->text() && !nand.SetPath( ui->lineEdit_nandPath->text() ) )
|
||||||
{
|
{
|
||||||
ShowMessage( tr( "<b>Error setting the basepath of the nand to %1</b>" )
|
ShowMessage( tr( "<b>Error setting the basepath of the nand to %1</b>" )
|
||||||
.arg( QFileInfo( ui->lineEdit_nandPath->text() ).absoluteFilePath() ) );
|
.arg( QFileInfo( ui->lineEdit_nandPath->text() ).absoluteFilePath() ) );
|
||||||
@ -322,34 +322,24 @@ void MainWindow::on_pushButton_wad_clicked()
|
|||||||
ui->lineEdit_wad->setText( f );
|
ui->lineEdit_wad->setText( f );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nand-dump -> setting.txt
|
||||||
|
void MainWindow::on_actionSetting_txt_triggered()
|
||||||
|
{
|
||||||
|
if( nand.GetPath() != ui->lineEdit_nandPath->text() && !nand.SetPath( ui->lineEdit_nandPath->text() ) )
|
||||||
|
{
|
||||||
|
ShowMessage( tr( "<b>Error setting the basepath of the nand to %1</b>" )
|
||||||
|
.arg( QFileInfo( ui->lineEdit_nandPath->text() ).absoluteFilePath() ) );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
QByteArray ba = nand.GetSettingTxt(); //read the current setting.txt
|
||||||
|
ba = SettingTxtDialog::Edit( this, ba ); //call a dialog to edit that existing file and store the result in teh same bytearray
|
||||||
|
if( !ba.isEmpty() ) //if the dialog returned anything ( cancel wasnt pressed ) write that new setting.txt to the nand dump
|
||||||
|
nand.SetSettingTxt( ba );
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
//nand-dump -> flush
|
||||||
3.4j-
|
void MainWindow::on_actionFlush_triggered()
|
||||||
Error getting title from NUS: Error downloading part of the title.
|
{
|
||||||
NusJob( 0001000248414b4a, 2, decrypted, 0 items: )
|
if( !nand.GetPath().isEmpty() )
|
||||||
|
nand.Flush();
|
||||||
Error getting title from NUS: Error downloading part of the title.
|
}
|
||||||
NusJob( 0001000248414c4a, 2, decrypted, 0 items: )
|
|
||||||
|
|
||||||
Received a completed download from NUS
|
|
||||||
Installed 0001000248415941v2 title to nand
|
|
||||||
|
|
||||||
Received a completed download from NUS
|
|
||||||
Error 000100084843434av0 title to nand
|
|
||||||
|
|
||||||
4.0j
|
|
||||||
Error getting title from NUS: Error downloading part of the title.
|
|
||||||
NusJob( 0001000248414b4a, 2, decrypted, 0 items: )
|
|
||||||
|
|
||||||
Error getting title from NUS: Error downloading part of the title.
|
|
||||||
NusJob( 0001000248414c4a, 2, decrypted, 0 items: )
|
|
||||||
|
|
||||||
Received a completed download from NUS
|
|
||||||
Installed 0001000248415941v3 title to nand
|
|
||||||
|
|
||||||
Error getting title from NUS: Error downloading part of the title.
|
|
||||||
NusJob( 000100024843434a, 1, decrypted, 0 items: )
|
|
||||||
|
|
||||||
Received a completed download from NUS
|
|
||||||
Error 000100084843434av0 title to nand
|
|
||||||
*/
|
|
||||||
|
@ -35,6 +35,8 @@ public slots:
|
|||||||
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void on_actionFlush_triggered();
|
||||||
|
void on_actionSetting_txt_triggered();
|
||||||
void on_pushButton_wad_clicked();
|
void on_pushButton_wad_clicked();
|
||||||
void on_pushButton_decFolder_clicked();
|
void on_pushButton_decFolder_clicked();
|
||||||
void on_pushButton_nandPath_clicked();
|
void on_pushButton_nandPath_clicked();
|
||||||
|
@ -212,6 +212,14 @@
|
|||||||
<height>27</height>
|
<height>27</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<widget class="QMenu" name="menuNand_Dump">
|
||||||
|
<property name="title">
|
||||||
|
<string>Nand Dump</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionSetting_txt"/>
|
||||||
|
<addaction name="actionFlush"/>
|
||||||
|
</widget>
|
||||||
|
<addaction name="menuNand_Dump"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QToolBar" name="mainToolBar">
|
<widget class="QToolBar" name="mainToolBar">
|
||||||
<attribute name="toolBarArea">
|
<attribute name="toolBarArea">
|
||||||
@ -222,6 +230,16 @@
|
|||||||
</attribute>
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusBar"/>
|
<widget class="QStatusBar" name="statusBar"/>
|
||||||
|
<action name="actionSetting_txt">
|
||||||
|
<property name="text">
|
||||||
|
<string>Setting.txt...</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionFlush">
|
||||||
|
<property name="text">
|
||||||
|
<string>Flush</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
@ -16,6 +16,7 @@ public:
|
|||||||
//if it doesnt exist, the function will try to create it
|
//if it doesnt exist, the function will try to create it
|
||||||
//also creates the normal folders in the nand
|
//also creates the normal folders in the nand
|
||||||
bool SetPath( const QString &path );
|
bool SetPath( const QString &path );
|
||||||
|
const QString GetPath(){ return basePath; }
|
||||||
|
|
||||||
//installs a title to the nand dump from an already existing NusJob
|
//installs a title to the nand dump from an already existing NusJob
|
||||||
//returns false if something went wrong
|
//returns false if something went wrong
|
||||||
|
@ -589,6 +589,7 @@ QMap< quint64, quint16 > NusDownloader::List20j()
|
|||||||
titles.insert( 0x10000000dull, 10 );//13v10
|
titles.insert( 0x10000000dull, 10 );//13v10
|
||||||
titles.insert( 0x10000000full, 257 );//15v257
|
titles.insert( 0x10000000full, 257 );//15v257
|
||||||
titles.insert( 0x100000011ull, 512 );//17v512
|
titles.insert( 0x100000011ull, 512 );//17v512
|
||||||
|
titles.insert( 0x100000023ull, 0xc10 ); // IOS35 - not really part of this update, but needed for sneek
|
||||||
titles.insert( 0x100000100ull, 0x2 );//bcv2
|
titles.insert( 0x100000100ull, 0x2 );//bcv2
|
||||||
titles.insert( 0x100000101ull, 0x4 );//miosv4
|
titles.insert( 0x100000101ull, 0x4 );//miosv4
|
||||||
titles.insert( 0x1000848414B45ull, 0 );//EULA - HAKE
|
titles.insert( 0x1000848414B45ull, 0 );//EULA - HAKE
|
||||||
@ -806,6 +807,7 @@ QMap< quint64, quint16 > NusDownloader::List21e()
|
|||||||
titles.insert( 0x100000015ull, 514 );//21v514
|
titles.insert( 0x100000015ull, 514 );//21v514
|
||||||
titles.insert( 0x100000016ull, 777 );//22v772 //should be getting v772 but it isnt available on NUS, get 777 instead
|
titles.insert( 0x100000016ull, 777 );//22v772 //should be getting v772 but it isnt available on NUS, get 777 instead
|
||||||
titles.insert( 0x10000001cull, 1292 );//28v1228 //should be getting v1288 but it isnt on NUS
|
titles.insert( 0x10000001cull, 1292 );//28v1228 //should be getting v1288 but it isnt on NUS
|
||||||
|
titles.insert( 0x100000023ull, 0xc10 ); // IOS35 - not really part of this update, but needed for sneek
|
||||||
titles.insert( 0x100000100ull, 0x2 );//bcv2
|
titles.insert( 0x100000100ull, 0x2 );//bcv2
|
||||||
titles.insert( 0x100000101ull, 0x4 );//miosv4
|
titles.insert( 0x100000101ull, 0x4 );//miosv4
|
||||||
titles.insert( 0x1000848414B50ull, 0 );//EULA - HAKP
|
titles.insert( 0x1000848414B50ull, 0 );//EULA - HAKP
|
||||||
@ -1038,6 +1040,7 @@ QMap< quint64, quint16 > NusDownloader::List20u()
|
|||||||
titles.insert( 0x10000000dull, 10 );//13v10
|
titles.insert( 0x10000000dull, 10 );//13v10
|
||||||
titles.insert( 0x10000000full, 257 );//15v257
|
titles.insert( 0x10000000full, 257 );//15v257
|
||||||
titles.insert( 0x100000011ull, 512 );//17v512
|
titles.insert( 0x100000011ull, 512 );//17v512
|
||||||
|
titles.insert( 0x100000023ull, 0xc10 ); // IOS35 - not really part of this update, but needed for sneek
|
||||||
titles.insert( 0x100000100ull, 0x2 );//bcv2
|
titles.insert( 0x100000100ull, 0x2 );//bcv2
|
||||||
titles.insert( 0x100000101ull, 0x4 );//miosv4
|
titles.insert( 0x100000101ull, 0x4 );//miosv4
|
||||||
titles.insert( 0x1000848414B45ull, 0 );//EULA - HAKE
|
titles.insert( 0x1000848414B45ull, 0 );//EULA - HAKE
|
||||||
|
@ -63,6 +63,7 @@ public:
|
|||||||
//to keep people from bulk DLing and installing and messing something up, any boot2 upudate will not be included
|
//to keep people from bulk DLing and installing and messing something up, any boot2 upudate will not be included
|
||||||
//in the list, ask for it specifically
|
//in the list, ask for it specifically
|
||||||
//lists are created from wiimpersonator logs when available. otherwise they come from examining game update partitions
|
//lists are created from wiimpersonator logs when available. otherwise they come from examining game update partitions
|
||||||
|
//for the 2.x updates, IOS35 is added for use in sneek
|
||||||
static QMap< quint64, quint16 > List20u();
|
static QMap< quint64, quint16 > List20u();
|
||||||
static QMap< quint64, quint16 > List30u();
|
static QMap< quint64, quint16 > List30u();
|
||||||
static QMap< quint64, quint16 > List31u();
|
static QMap< quint64, quint16 > List31u();
|
||||||
|
Loading…
Reference in New Issue
Block a user