mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
NOISSUE asynchronous, parallel mod folder listing and mod resolving
This commit is contained in:
parent
7d13e31198
commit
a3ffa3d665
21 changed files with 824 additions and 546 deletions
18
api/logic/minecraft/mod/ModFolderLoadTask.cpp
Normal file
18
api/logic/minecraft/mod/ModFolderLoadTask.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "ModFolderLoadTask.h"
|
||||
#include <QDebug>
|
||||
|
||||
ModFolderLoadTask::ModFolderLoadTask(QDir dir) :
|
||||
m_dir(dir), m_result(new Result())
|
||||
{
|
||||
}
|
||||
|
||||
void ModFolderLoadTask::run()
|
||||
{
|
||||
m_dir.refresh();
|
||||
for (auto entry : m_dir.entryInfoList())
|
||||
{
|
||||
Mod m(entry);
|
||||
m_result->mods[m.mmc_id()] = m;
|
||||
}
|
||||
emit succeeded();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue