aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/launch/ScanModFolders.cpp
diff options
context:
space:
mode:
authorkumquat-ir <66188216+kumquat-ir@users.noreply.github.com>2023-02-11 17:36:06 -0500
committerkumquat-ir <66188216+kumquat-ir@users.noreply.github.com>2023-02-11 17:46:17 -0500
commit7896dd19c12c0276551ba188adc6184dcf0a3184 (patch)
tree41b557da92f6cfcb5922a79055ffcd2835a1365b /launcher/minecraft/launch/ScanModFolders.cpp
parentf5f2d33f930674e03f8c81c1eaa3d35ddabc2886 (diff)
downloadPrismLauncher-7896dd19c12c0276551ba188adc6184dcf0a3184.tar.gz
PrismLauncher-7896dd19c12c0276551ba188adc6184dcf0a3184.tar.bz2
PrismLauncher-7896dd19c12c0276551ba188adc6184dcf0a3184.zip
nilmods instance page
mostly copied from the coremod page impl Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/launch/ScanModFolders.cpp')
-rw-r--r--launcher/minecraft/launch/ScanModFolders.cpp14
1 files changed, 13 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();
}
}