diff options
author | Sky <git@bunnies.cc> | 2013-10-26 11:13:14 +0100 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-10-26 11:13:14 +0100 |
commit | 1f28a3b8af228ec40412571859f15ea216ccb52a (patch) | |
tree | 975225cfc5981d9f8e5b79ba224db02782aa4faf /logic/OneSixAssets.cpp | |
parent | cf07b90bdaf7dda2cbdd8ae9a7212c04badd0b09 (diff) | |
parent | c467ebf1327d6266fc51443edfac6f0b536b6602 (diff) | |
download | MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.tar MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.tar.gz MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.tar.lz MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.tar.xz MultiMC-1f28a3b8af228ec40412571859f15ea216ccb52a.zip |
Merge branch 'develop'
Diffstat (limited to 'logic/OneSixAssets.cpp')
-rw-r--r-- | logic/OneSixAssets.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/logic/OneSixAssets.cpp b/logic/OneSixAssets.cpp index 6aa0a207..ff19a86b 100644 --- a/logic/OneSixAssets.cpp +++ b/logic/OneSixAssets.cpp @@ -67,6 +67,8 @@ void OneSixAssets::fetchXMLFinished() QString fprefix ( "assets/" ); nuke_whitelist.clear(); + emit filesStarted(); + auto firstJob = index_job->first(); QByteArray ba = std::dynamic_pointer_cast<ByteArrayDownload>(firstJob)->m_data; @@ -84,6 +86,7 @@ void OneSixAssets::fetchXMLFinished() DownloadJob *job = new DownloadJob("Assets"); connect ( job, SIGNAL(succeeded()), SLOT(downloadFinished()) ); connect ( job, SIGNAL(failed()), SIGNAL(failed()) ); + connect ( job, SIGNAL(filesProgress(int, int, int)), SIGNAL(filesProgress(int, int, int)) ); auto metacache = MMC->metacache(); @@ -130,14 +133,15 @@ void OneSixAssets::fetchXMLFinished() emit finished(); } } + void OneSixAssets::start() { auto job = new DownloadJob("Assets index"); job->addByteArrayDownload(QUrl ( "http://s3.amazonaws.com/Minecraft.Resources/" )); connect ( job, SIGNAL(succeeded()), SLOT ( fetchXMLFinished() ) ); + emit indexStarted(); index_job.reset ( job ); job->start(); } - #include "OneSixAssets.moc" |