diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-03-05 13:39:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 13:39:00 +0100 |
commit | f3f0652d2ba06d567c02ec2f0b85bfa97d465d98 (patch) | |
tree | 6bf189684cd1ae1db6ddac90cabdb42cbb14668a /launcher/minecraft/launch | |
parent | aae60334d1d7a9dbc26bca634d1b34257c7b9566 (diff) | |
parent | 01c4ed232e67c1b980a0c091c4c277722811d3dc (diff) | |
download | PrismLauncher-f3f0652d2ba06d567c02ec2f0b85bfa97d465d98.tar.gz PrismLauncher-f3f0652d2ba06d567c02ec2f0b85bfa97d465d98.tar.bz2 PrismLauncher-f3f0652d2ba06d567c02ec2f0b85bfa97d465d98.zip |
Merge pull request #853 from kumquat-ir/nil
NilLoader mod metadata support
Diffstat (limited to 'launcher/minecraft/launch')
-rw-r--r-- | launcher/minecraft/launch/ScanModFolders.cpp | 14 | ||||
-rw-r--r-- | launcher/minecraft/launch/ScanModFolders.h | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/launcher/minecraft/launch/ScanModFolders.cpp b/launcher/minecraft/launch/ScanModFolders.cpp index bdffeadd..71e7638c 100644 --- a/launcher/minecraft/launch/ScanModFolders.cpp +++ b/launcher/minecraft/launch/ScanModFolders.cpp @@ -55,6 +55,12 @@ void ScanModFolders::executeTask() if(!cores->update()) { m_coreModsDone = true; } + + auto nils = m_inst->nilModList(); + connect(nils.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::nilModsDone); + if(!nils->update()) { + m_nilModsDone = true; + } checkDone(); } @@ -70,9 +76,15 @@ void ScanModFolders::coreModsDone() checkDone(); } +void ScanModFolders::nilModsDone() +{ + m_nilModsDone = true; + checkDone(); +} + void ScanModFolders::checkDone() { - if(m_modsDone && m_coreModsDone) { + if(m_modsDone && m_coreModsDone && m_nilModsDone) { emitSucceeded(); } } diff --git a/launcher/minecraft/launch/ScanModFolders.h b/launcher/minecraft/launch/ScanModFolders.h index d5989170..111a5850 100644 --- a/launcher/minecraft/launch/ScanModFolders.h +++ b/launcher/minecraft/launch/ScanModFolders.h @@ -33,10 +33,12 @@ public: private slots: void coreModsDone(); void modsDone(); + void nilModsDone(); private: void checkDone(); private: // DATA bool m_modsDone = false; + bool m_nilModsDone = false; bool m_coreModsDone = false; }; |