forked from len0rd/rockbox
rbutilqt: always rename the OF to the name specified in rbtutil.ini
The OF could have been stored by the user with a different name git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23700 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e30d13e344
commit
6b06648239
1 changed files with 2 additions and 4 deletions
|
|
@ -118,10 +118,8 @@ void BootloaderInstallAms::installStage2(void)
|
||||||
|
|
||||||
patch_firmware(sum.model,firmware_revision(sum.model),firmware_size,buf,len,of_packed,of_packedsize,rb_packed,rb_packedsize);
|
patch_firmware(sum.model,firmware_revision(sum.model),firmware_size,buf,len,of_packed,of_packedsize,rb_packed,rb_packedsize);
|
||||||
|
|
||||||
/* construct path for write out. combine path of m_blfile with filename from of */
|
/* write out file */
|
||||||
QString outfilename = QFileInfo(m_blfile).absolutePath() + "/" +QFileInfo(m_offile).fileName();
|
QFile out(m_blfile);
|
||||||
/* write out file*/
|
|
||||||
QFile out(outfilename);
|
|
||||||
|
|
||||||
if(!out.open(QIODevice::WriteOnly | QIODevice::Truncate))
|
if(!out.open(QIODevice::WriteOnly | QIODevice::Truncate))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue