summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-21 18:01:28 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-21 18:01:28 +0300
commit75cf6e1b656ada30fae4cbe091b289f9f02e918f (patch)
tree60d7abc68cb03d975f992337fd60405ca5a5ac42 /src
parentdd3ac96d868e5a3e7c230832b25aacd24e03719e (diff)
downloadmanaverse-75cf6e1b656ada30fae4cbe091b289f9f02e918f.tar.gz
manaverse-75cf6e1b656ada30fae4cbe091b289f9f02e918f.tar.bz2
manaverse-75cf6e1b656ada30fae4cbe091b289f9f02e918f.tar.xz
manaverse-75cf6e1b656ada30fae4cbe091b289f9f02e918f.zip
Change update check url to new server.
Ignore error if update check failed.
Diffstat (limited to 'src')
-rw-r--r--src/gui/updatewindow.cpp16
1 files 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