mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-22 17:19:18 +01:00
*ohneswanzenegger: fix setting.txt bug
This commit is contained in:
parent
2ec2031f6b
commit
8b0d801a34
@ -298,7 +298,8 @@ void MainWindow::on_actionSetting_txt_triggered()
|
|||||||
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
|
||||||
{
|
{
|
||||||
if( !nand.SetData( "/title/00000001/00000002/data/setting.txt", ba )
|
quint16 r = CreateIfNeeded( "/title/00000001/00000002/data/setting.txt", 0x1000, 1, NAND_FILE, NAND_READ, NAND_READ, NAND_READ );
|
||||||
|
if( !nand.SetData( r, ba )
|
||||||
|| !nand.WriteMetaData() )
|
|| !nand.WriteMetaData() )
|
||||||
{
|
{
|
||||||
ShowMessage( tr( "<b>Error writing setting.txt</b>" ) );
|
ShowMessage( tr( "<b>Error writing setting.txt</b>" ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user