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

Method executeTask

launcher/minecraft/legacy/LegacyUpgradeTask.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void LegacyUpgradeTask::executeTask()
19{
20 setStatus(tr("Copying instance %1").arg(m_origInstance->name()));
21
22 FS::copy folderCopy(m_origInstance->instanceRoot(), m_stagingPath);
23 folderCopy.followSymlinks(true);
24
25 m_copyFuture = QtConcurrent::run(QThreadPool::globalInstance(), folderCopy);
26 connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::finished, this, &LegacyUpgradeTask::copyFinished);
27 connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::canceled, this, &LegacyUpgradeTask::copyAborted);
28 m_copyFutureWatcher.setFuture(m_copyFuture);
29}
30
31static QString decideVersion(const QString& currentVersion, const QString& intendedVersion)
32{

Callers

nothing calls this directly

Calls 3

runFunction · 0.85
instanceRootMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected