MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getDownloadJob

Method getDownloadJob

launcher/minecraft/AssetsUtils.cpp:341–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341NetJob::Ptr AssetsIndex::getDownloadJob()
342{
343 auto job = new NetJob(QObject::tr("Assets for %1").arg(id), APPLICATION->network());
344 for (auto &object : objects.values())
345 {
346 auto dl = object.getDownloadAction();
347 if(dl)
348 {
349 job->addNetAction(dl);
350 }
351 }
352 if(job->size())
353 return job;
354 return nullptr;
355}

Callers 1

assetIndexFinishedMethod · 0.80

Calls 4

networkMethod · 0.80
getDownloadActionMethod · 0.80
addNetActionMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected