summaryrefslogtreecommitdiffstats
path: root/logic/LegacyUpdate.cpp
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-12-13 14:58:11 +0000
committerSky <git@bunnies.cc>2013-12-13 14:58:11 +0000
commit979946b7bb2cec808198f9194169ea08cce8bb00 (patch)
tree76db4173a0f896b7accfcdf8bb8a7dd143525922 /logic/LegacyUpdate.cpp
parent808ca763632090abdab5a2451c95dbb0f4319126 (diff)
downloadMultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.tar
MultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.tar.gz
MultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.tar.lz
MultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.tar.xz
MultiMC-979946b7bb2cec808198f9194169ea08cce8bb00.zip
First sweep moving URLs to a constants file
Diffstat (limited to 'logic/LegacyUpdate.cpp')
-rw-r--r--logic/LegacyUpdate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/LegacyUpdate.cpp b/logic/LegacyUpdate.cpp
index 60dde3e8..e71b270e 100644
--- a/logic/LegacyUpdate.cpp
+++ b/logic/LegacyUpdate.cpp
@@ -25,6 +25,7 @@
#include <quazipfile.h>
#include <JlCompress.h>
#include "logger/QsLog.h"
+#include "logic/net/URLConstants.h"
LegacyUpdate::LegacyUpdate(BaseInstance *inst, bool only_prepare, QObject *parent)
: Task(parent), m_inst(inst), m_only_prepare(only_prepare)
@@ -263,7 +264,7 @@ void LegacyUpdate::jarStart()
QString version_id = inst->intendedVersionId();
QString localPath = version_id + "/" + version_id + ".jar";
- QString urlstr = "http://s3.amazonaws.com/Minecraft.Download/versions/" + localPath;
+ QString urlstr = "http://" + URLConstants::AWS_DOWNLOAD_VERSIONS + localPath;
auto dljob = new NetJob("Minecraft.jar for version " + version_id);