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

Method executeTask

launcher/ui/pages/modplatform/import_ftb/PackInstallTask.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void PackInstallTask::executeTask() {
32 FS::copy folderCopy(m_pack.instanceDir, FS::PathCombine(m_stagingPath, ".minecraft"));
33 folderCopy.followSymlinks(true).blacklist(new RegexpMatcher("(instance|version)[.]json"));
34
35 m_copyFuture = QtConcurrent::run(QThreadPool::globalInstance(), folderCopy);
36 connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::finished, this, &PackInstallTask::copyFinished);
37 connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::canceled, this, &PackInstallTask::copyAborted);
38 m_copyFutureWatcher.setFuture(m_copyFuture);
39 abortable = true;
40}
41
42void PackInstallTask::copyFinished() {
43 abortable = false;

Callers

nothing calls this directly

Calls 2

PathCombineFunction · 0.85
runFunction · 0.85

Tested by

no test coverage detected