rbutil: Add generated voicefiles to the install log, so you can uninstall it again

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17839 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2008-06-28 16:44:59 +00:00
parent db00c568c9
commit 9c84070c8a

View file

@ -74,7 +74,7 @@ bool VoiceFileCreator::createVoiceFile(ProgressloggerInterface* logger)
{
version = line.remove("Version:").trimmed();
version = version.left(version.indexOf("-")).remove(0,1);
}
}
}
info.close();
@ -286,7 +286,14 @@ void VoiceFileCreator::downloadDone(bool error)
{
QFile::remove(mp3files.at(i));
}
// Add Voice file to the install log
QSettings installlog(m_mountpoint + "/.rockbox/rbutil.log", QSettings::IniFormat, 0);
installlog.beginGroup("selfcreated Voice");
installlog.setValue("/.rockbox/langs/" + m_lang + ".voice",QDate::currentDate().toString("yyyyMMdd"));
installlog.endGroup();
installlog.sync();
m_logger->setProgressMax(100);
m_logger->setProgressValue(100);
m_logger->addItem(tr("successfully created."),LOGOK);