MCPcopy Create free account
hub / github.com/MultiMC/Launcher / remoteLoadSucceeded

Method remoteLoadSucceeded

launcher/minecraft/ComponentUpdateTask.cpp:637–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637void ComponentUpdateTask::remoteLoadSucceeded(size_t taskIndex)
638{
639 auto &taskSlot = d->remoteLoadStatusList[taskIndex];
640 if(taskSlot.finished)
641 {
642 qWarning() << "Got multiple results from remote load task" << taskIndex;
643 return;
644 }
645 qDebug() << "Remote task" << taskIndex << "succeeded";
646 taskSlot.succeeded = false;
647 taskSlot.finished = true;
648 d->remoteTasksInProgress --;
649 // update the cached data of the component from the downloaded version file.
650 if (taskSlot.type == RemoteLoadStatus::Type::Version)
651 {
652 auto component = d->m_list->getComponent(taskSlot.PackProfileIndex);
653 component->m_loaded = true;
654 component->updateCachedData();
655 }
656 checkIfAllFinished();
657}
658
659
660void ComponentUpdateTask::remoteLoadFailed(size_t taskIndex, const QString& msg)

Callers

nothing calls this directly

Calls 2

getComponentMethod · 0.80
updateCachedDataMethod · 0.80

Tested by

no test coverage detected