1
0
Fork 0
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:
Rafaël Carré 2009-11-22 14:28:48 +00:00
parent e30d13e344
commit 6b06648239

View file

@ -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);
/* construct path for write out. combine path of m_blfile with filename from of */
QString outfilename = QFileInfo(m_blfile).absolutePath() + "/" +QFileInfo(m_offile).fileName();
/* write out file*/
QFile out(outfilename);
/* write out file */
QFile out(m_blfile);
if(!out.open(QIODevice::WriteOnly | QIODevice::Truncate))
{