From 259c2b3803bcf1dd16759b6adad7ac9006c36f09 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 Apr 2015 18:38:46 +0300 Subject: Add mirror support for servers list. --- src/gui/windows/serverdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index 2f50a4744..6c72301ca 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -424,6 +424,7 @@ void ServerDialog::downloadServerList() { // Try to load the configuration value for the onlineServerList std::string listFile = branding.getStringValue("onlineServerList"); + std::string listFile2 = branding.getStringValue("onlineServerList2"); // Fall back to manaplus.org when neither branding // nor config set it @@ -440,6 +441,8 @@ void ServerDialog::downloadServerList() &downloadUpdate, false, false, true); mDownload->setFile(std::string(mDir).append("/").append( branding.getStringValue("onlineServerFile"))); + if (!listFile2.empty()) + mDownload->addMirror(listFile2); mDownload->start(); config.setValue("serverslistupdate", getDateString()); -- cgit v1.2.3-70-g09d2