From 9c84070c8a56b89b32c92eeca06154ac6ad927a5 Mon Sep 17 00:00:00 2001 From: Dominik Wenger Date: Sat, 28 Jun 2008 16:44:59 +0000 Subject: 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 --- rbutil/rbutilqt/voicefile.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rbutil/rbutilqt/voicefile.cpp b/rbutil/rbutilqt/voicefile.cpp index f949839cf1..008a85505b 100644 --- a/rbutil/rbutilqt/voicefile.cpp +++ b/rbutil/rbutilqt/voicefile.cpp @@ -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); -- cgit v1.2.3