mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Only support pregenerated voice file for releases.
The voice file installed needs to match the Rockbox version installed. If not the voice might not match the actual entries. Rockbox Utility always was sloppy on this and installed the latest archived (previously "daily") builds voice file for the latest development (previously "current") build. Archived builds aren't supported anymore in Rockbox Utility, so remove support for installing archived voice files as well. There are no pregenerated voice files for development versions provided, and Rockbox Utility can generate voice files anyway. Also, those files are only provided and most users seem to prefer to use the voices they have installed on their PC. Change-Id: I17817da8a14dc5f8b0ef208579d8d75fa86ab610
This commit is contained in:
parent
87bb7471bb
commit
96e7cc9e80
1 changed files with 6 additions and 5 deletions
|
|
@ -913,8 +913,12 @@ void RbUtilQt::installVoice()
|
|||
}
|
||||
if(relversion.isEmpty()) {
|
||||
// release is empty for non-release versions (i.e. daily / current)
|
||||
voiceurl = SystemInfo::value(SystemInfo::DailyVoiceUrl).toString();
|
||||
logversion = installInfo.revision();
|
||||
QMessageBox::critical(this, tr("No voice available"),
|
||||
tr("The installed version of Rockbox is a development version. "
|
||||
"Pre-built voices are only available for release versions "
|
||||
"of Rockbox. Please generate a voice yourself using the "
|
||||
"\"Create voice file\" functionality."));
|
||||
return;
|
||||
}
|
||||
else {
|
||||
voiceurl = SystemInfo::value(SystemInfo::ReleaseVoiceUrl).toString();
|
||||
|
|
@ -925,11 +929,8 @@ void RbUtilQt::installVoice()
|
|||
QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes)
|
||||
return;
|
||||
|
||||
QDate date = QDate::fromString(
|
||||
ServerInfo::value(ServerInfo::DailyDate).toString(), Qt::ISODate);
|
||||
QString model = SystemInfo::value(SystemInfo::CurBuildserverModel).toString();
|
||||
// replace placeholder in voice url
|
||||
voiceurl.replace("%DATE%", date.toString("yyyyMMdd"));
|
||||
voiceurl.replace("%MODEL%", model);
|
||||
voiceurl.replace("%RELVERSION%", relversion);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue