From 75cf6e1b656ada30fae4cbe091b289f9f02e918f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Jul 2011 18:01:28 +0300 Subject: Change update check url to new server. Ignore error if update check failed. --- src/gui/updatewindow.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index d17defb45..a062428de 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -321,7 +321,7 @@ void UpdaterWindow::loadPatch() if (version > CHECK_VERSION) { mBrowserBox->addRow("", true); - mBrowserBox->addRow(" ##1http://tmw.cetki.com/4144/", true); + mBrowserBox->addRow(" ##1http://manaplus.evolonline.org/", true); mBrowserBox->addRow("##1You can download it from", true); mBrowserBox->addRow("##1ManaPlus updated.", true); } @@ -353,7 +353,17 @@ int UpdaterWindow::updateProgress(void *ptr, DownloadStatus status, else if (status == DOWNLOAD_STATUS_ERROR || status == DOWNLOAD_STATUS_CANCELLED) { - uw->mDownloadStatus = UPDATE_ERROR; + if (uw->mDownloadStatus == UPDATE_PATCH) + { + uw->mDownloadStatus = UPDATE_COMPLETE; + uw->mDownloadComplete = true; + free(uw->mMemoryBuffer); + uw->mMemoryBuffer = NULL; + } + else + { + uw->mDownloadStatus = UPDATE_ERROR; + } } if (!dt) @@ -410,7 +420,7 @@ void UpdaterWindow::download() } if (mDownloadStatus == UPDATE_PATCH) { - mDownload = new Net::Download(this, "http://tmw.cetki.com/update/" + mDownload = new Net::Download(this, "http://manaplus.evolonline.org/update/" + mCurrentFile, updateProgress); } else -- cgit v1.2.3-70-g09d2