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

Method checkIfAllFinished

launcher/minecraft/ComponentUpdateTask.cpp:685–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685void ComponentUpdateTask::checkIfAllFinished()
686{
687 if(d->remoteTasksInProgress)
688 {
689 // not yet...
690 return;
691 }
692 if(d->remoteLoadSuccessful)
693 {
694 // nothing bad happened... clear the temp load status and proceed with looking at dependencies
695 d->remoteLoadStatusList.clear();
696 resolveDependencies(d->mode == Mode::Launch);
697 }
698 else
699 {
700 // remote load failed... report error and bail
701 QStringList allErrorsList;
702 for(auto & item: d->remoteLoadStatusList)
703 {
704 if(!item.succeeded)
705 {
706 allErrorsList.append(item.error);
707 }
708 }
709 auto allErrors = allErrorsList.join("\n");
710 emitFailed(tr("Component metadata update task failed while downloading from remote server:\n%1").arg(allErrors));
711 d->remoteLoadStatusList.clear();
712 }
713}

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected