mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-22 17:19:18 +01:00
* ohneswanzenegger: write metadada after editing setting.txt
This commit is contained in:
parent
1ee50ec16f
commit
4c2eea6ddd
@ -295,7 +295,15 @@ void MainWindow::on_actionSetting_txt_triggered()
|
|||||||
QByteArray ba = nand.GetData( "/title/00000001/00000002/data/setting.txt" ); //read the current setting.txt
|
QByteArray ba = nand.GetData( "/title/00000001/00000002/data/setting.txt" ); //read the current setting.txt
|
||||||
ba = SettingTxtDialog::Edit( this, ba ); //call a dialog to edit that existing file and store the result in the same bytearray
|
ba = SettingTxtDialog::Edit( this, ba ); //call a dialog to edit that existing file and store the result in the same bytearray
|
||||||
if( !ba.isEmpty() ) //if the dialog returned anything ( cancel wasnt pressed ) write that new setting.txt to the nand dump
|
if( !ba.isEmpty() ) //if the dialog returned anything ( cancel wasnt pressed ) write that new setting.txt to the nand dump
|
||||||
nand.SetData( "/title/00000001/00000002/data/setting.txt", ba );
|
{
|
||||||
|
if( !nand.SetData( "/title/00000001/00000002/data/setting.txt", ba )
|
||||||
|
|| !nand.WriteMetaData() )
|
||||||
|
{
|
||||||
|
ShowMessage( tr( "<b>Error writing setting.txt</b>" ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
ShowMessage( tr( "Saved setting.txt" ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//nand-dump -> flush
|
//nand-dump -> flush
|
||||||
|
Loading…
Reference in New Issue
Block a user