From b064a6cbb58a0db1a70fbac2e82242ce0c7509b1 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 28 Nov 2020 20:47:28 +0100 Subject: 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 --- rbutil/rbutilqt/base/voicefile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rbutil/rbutilqt/base/voicefile.cpp') 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 @@ #include "utils.h" #include "rockboxinfo.h" #include "rbsettings.h" -#include "systeminfo.h" +#include "playerbuildinfo.h" #include "ziputil.h" #include "Logger.h" @@ -148,7 +148,8 @@ bool VoiceFileCreator::createVoiceFile() // genlang output as previously from the webserver. // prepare download url - QString genlang = SystemInfo::value(SystemInfo::GenlangUrl).toString(); + QString genlang = PlayerBuildInfo::instance()->value( + PlayerBuildInfo::GenlangUrl).toString(); genlang.replace("%LANG%", m_lang); genlang.replace("%TARGET%", target); genlang.replace("%REVISION%", version); -- cgit v1.2.3