From c82042dcfa79b4047d3663db3a9d82ac254b04ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 25 Sep 2017 08:06:23 +0200 Subject: [PATCH] GH-2000 translate 'required' from Flame pack manifests to '.disabled' --- api/logic/InstanceImportTask.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/logic/InstanceImportTask.cpp b/api/logic/InstanceImportTask.cpp index 7963a335..e5634ac4 100644 --- a/api/logic/InstanceImportTask.cpp +++ b/api/logic/InstanceImportTask.cpp @@ -297,7 +297,12 @@ void InstanceImportTask::processFlame() m_filesNetJob.reset(new NetJob(tr("Mod download"))); 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); m_filesNetJob->addNetAction(dl); }