GH-2000 translate 'required' from Flame pack manifests to '.disabled'
This commit is contained in:
parent
b5b16d0972
commit
c82042dcfa
@ -297,7 +297,12 @@ void InstanceImportTask::processFlame()
|
|||||||
m_filesNetJob.reset(new NetJob(tr("Mod download")));
|
m_filesNetJob.reset(new NetJob(tr("Mod download")));
|
||||||
for(auto result: results.files)
|
for(auto result: results.files)
|
||||||
{
|
{
|
||||||
auto path = FS::PathCombine(m_stagingPath ,"minecraft", result.targetFolder, result.fileName);
|
QString filename = result.fileName;
|
||||||
|
if(!result.required)
|
||||||
|
{
|
||||||
|
filename += ".disabled";
|
||||||
|
}
|
||||||
|
auto path = FS::PathCombine(m_stagingPath ,"minecraft", result.targetFolder, filename);
|
||||||
auto dl = Net::Download::makeFile(result.url, path);
|
auto dl = Net::Download::makeFile(result.url, path);
|
||||||
m_filesNetJob->addNetAction(dl);
|
m_filesNetJob->addNetAction(dl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user