2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 17:47:42 +00:00

Add support for development tracks

This commit is contained in:
2019-06-29 11:02:33 -07:00
parent 1dd7f604f0
commit 483d4746dc
4 changed files with 382 additions and 270 deletions

View File

@@ -51,8 +51,8 @@ void DownloadManager::fetchIndex() {
return;
resetError();
QString url = Domain + CurPlatformString + '/' + Index;
QString track = QSettings().value("update_track").toString();
QString url = Domain + track + '/' + CurPlatformString + '/' + Index;
m_indexInProgress = m_netManager.get(QNetworkRequest(url));
connect(m_indexInProgress, SIGNAL(finished()), this, SLOT(indexFinished()));
connect(m_indexInProgress, SIGNAL(error(QNetworkReply::NetworkError)), this,
@@ -67,7 +67,8 @@ void DownloadManager::fetchBinary(const QString& str, const QString& outPath) {
resetError();
m_outPath = outPath;
QString url = Domain + CurPlatformString + '/' + str;
QString track = QSettings().value("update_track").toString();
QString url = Domain + track + '/' + CurPlatformString + '/' + str;
m_binaryInProgress = m_netManager.get(QNetworkRequest(url));
connect(m_binaryInProgress, SIGNAL(finished()), this, SLOT(binaryFinished()));
connect(m_binaryInProgress, SIGNAL(error(QNetworkReply::NetworkError)), this,