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

Method executeTask

launcher/minecraft/launch/ScanModFolders.cpp:43–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41#include "minecraft/mod/ModFolderModel.h"
42
43void ScanModFolders::executeTask()
44{
45 auto m_inst = m_parent->instance();
46
47 auto loaders = m_inst->loaderModList();
48 connect(loaders.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::modsDone);
49 if (!loaders->update()) {
50 m_modsDone = true;
51 }
52
53 auto cores = m_inst->coreModList();
54 connect(cores.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::coreModsDone);
55 if (!cores->update()) {
56 m_coreModsDone = true;
57 }
58
59 auto nils = m_inst->nilModList();
60 connect(nils.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::nilModsDone);
61 if (!nils->update()) {
62 m_nilModsDone = true;
63 }
64 checkDone();
65}
66
67void ScanModFolders::modsDone()
68{

Callers

nothing calls this directly

Calls 6

loaderModListMethod · 0.80
coreModListMethod · 0.80
nilModListMethod · 0.80
instanceMethod · 0.45
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected