summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logic/OneSixAssets.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/OneSixAssets.cpp b/logic/OneSixAssets.cpp
index dbc42262..400aff2c 100644
--- a/logic/OneSixAssets.cpp
+++ b/logic/OneSixAssets.cpp
@@ -22,6 +22,8 @@
#include "net/S3ListBucket.h"
#include "MultiMC.h"
+#define ASSETS_URL "http://resources.download.minecraft.net/"
+
class ThreadedDeleter : public QThread
{
Q_OBJECT
@@ -69,7 +71,7 @@ void OneSixAssets::downloadFinished()
void OneSixAssets::S3BucketFinished()
{
- QString prefix("http://s3.amazonaws.com/Minecraft.Resources/");
+ QString prefix(ASSETS_URL);
nuke_whitelist.clear();
emit filesStarted();
@@ -114,7 +116,7 @@ void OneSixAssets::S3BucketFinished()
void OneSixAssets::start()
{
auto job = new NetJob("Assets index");
- job->addNetAction(S3ListBucket::make(QUrl("http://s3.amazonaws.com/Minecraft.Resources/")));
+ job->addNetAction(S3ListBucket::make(QUrl(ASSETS_URL)));
connect(job, SIGNAL(succeeded()), SLOT(S3BucketFinished()));
connect(job, SIGNAL(failed()), SIGNAL(failed()));
emit indexStarted();