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

Method executeTask

launcher/modplatform/import_ftb/PackInstallTask.cpp:33–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace FTBImportAPP {
32
33void PackInstallTask::executeTask()
34{
35 setStatus(tr("Copying files..."));
36 setAbortable(false);
37 progress(1, 2);
38
39 m_copyFuture = QtConcurrent::run(QThreadPool::globalInstance(), [this] {
40 FS::copy folderCopy(m_pack.path, FS::PathCombine(m_stagingPath, "minecraft"));
41 folderCopy.followSymlinks(true);
42 return folderCopy();
43 });
44 connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::finished, this, &PackInstallTask::copySettings);
45 connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::canceled, this, &PackInstallTask::emitAborted);
46 m_copyFutureWatcher.setFuture(m_copyFuture);
47}
48
49void PackInstallTask::copySettings()
50{

Callers

nothing calls this directly

Calls 2

runFunction · 0.85
PathCombineFunction · 0.85

Tested by

no test coverage detected