mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-29 09:15:49 +00:00
19 lines
339 B
C++
19 lines
339 B
C++
|
#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();
|
||
|
}
|