MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / getDownloadJob

Method getDownloadJob

launcher/minecraft/AssetsUtils.cpp:309–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309NetJob::Ptr AssetsIndex::getDownloadJob()
310{
311 auto job = makeShared<NetJob>(QObject::tr("Assets for %1").arg(id), APPLICATION->network());
312 for (auto& object : objects.values()) {
313 auto dl = object.getDownloadAction();
314 if (dl) {
315 job->addNetAction(dl);
316 }
317 }
318 if (job->size())
319 return job;
320 return nullptr;
321}

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