summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/voicefile.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-28 20:47:28 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-12-03 22:25:12 +0100
commitb064a6cbb58a0db1a70fbac2e82242ce0c7509b1 (patch)
treec9090d367d237cbd408afbd24d5809e55a1a2653 /rbutil/rbutilqt/base/voicefile.cpp
parent78a01db47cac5fa67aeee6f1c5134f89c3e4944a (diff)
downloadrockbox-b064a6cbb58a0db1a70fbac2e82242ce0c7509b1.tar.gz
rockbox-b064a6cbb58a0db1a70fbac2e82242ce0c7509b1.zip
rbutil: Rework and merge player and build server info handling.
Handling the data for players from rbutil.ini and the build-info data from the server is closely related. Splitting things up into different classes only creates tightly coupling, which is unnecessary, and the need to differentiate between them in the application. Merge both classes into a single one and rework handling so the application doesn't have to deal with two separate classes anymore. Furthermore, change URL templates to use new values from build-info instead of hard coding them. Change-Id: Ica550973ce23d1559110782add52bc214eba552d
Diffstat (limited to 'rbutil/rbutilqt/base/voicefile.cpp')
-rw-r--r--rbutil/rbutilqt/base/voicefile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/voicefile.cpp b/rbutil/rbutilqt/base/voicefile.cpp
index c4edac64b9..98ab96b8ab 100644
--- a/rbutil/rbutilqt/base/voicefile.cpp
+++ b/rbutil/rbutilqt/base/voicefile.cpp
@@ -21,7 +21,7 @@
21#include "utils.h" 21#include "utils.h"
22#include "rockboxinfo.h" 22#include "rockboxinfo.h"
23#include "rbsettings.h" 23#include "rbsettings.h"
24#include "systeminfo.h" 24#include "playerbuildinfo.h"
25#include "ziputil.h" 25#include "ziputil.h"
26#include "Logger.h" 26#include "Logger.h"
27 27
@@ -148,7 +148,8 @@ bool VoiceFileCreator::createVoiceFile()
148 // genlang output as previously from the webserver. 148 // genlang output as previously from the webserver.
149 149
150 // prepare download url 150 // prepare download url
151 QString genlang = SystemInfo::value(SystemInfo::GenlangUrl).toString(); 151 QString genlang = PlayerBuildInfo::instance()->value(
152 PlayerBuildInfo::GenlangUrl).toString();
152 genlang.replace("%LANG%", m_lang); 153 genlang.replace("%LANG%", m_lang);
153 genlang.replace("%TARGET%", target); 154 genlang.replace("%TARGET%", target);
154 genlang.replace("%REVISION%", version); 155 genlang.replace("%REVISION%", version);