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

Method onModsDownloaded

launcher/modplatform/atlauncher/ATLPackInstallTask.cpp:643–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643void PackInstallTask::onModsDownloaded() {
644 abortable = false;
645
646 qDebug() << "PackInstallTask::onModsDownloaded: " << QThread::currentThreadId();
647 jobPtr.reset();
648
649 if(!modsToExtract.empty() || !modsToDecomp.empty() || !modsToCopy.empty()) {
650 m_modExtractFuture = QtConcurrent::run(QThreadPool::globalInstance(), this, &PackInstallTask::extractMods, modsToExtract, modsToDecomp, modsToCopy);
651 connect(&m_modExtractFutureWatcher, &QFutureWatcher<QStringList>::finished, this, &PackInstallTask::onModsExtracted);
652 connect(&m_modExtractFutureWatcher, &QFutureWatcher<QStringList>::canceled, this, [&]()
653 {
654 emitAborted();
655 });
656 m_modExtractFutureWatcher.setFuture(m_modExtractFuture);
657 }
658 else {
659 install();
660 }
661}
662
663void PackInstallTask::onModsExtracted() {
664 qDebug() << "PackInstallTask::onModsExtracted: " << QThread::currentThreadId();

Callers

nothing calls this directly

Calls 3

runFunction · 0.85
resetMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected