NOISSUE do not fail when the Flame overrides folder is missing

This commit is contained in:
Petr Mrázek 2017-09-26 01:36:52 +02:00
parent a269e0c92f
commit f26ca143c4

View File

@ -200,6 +200,8 @@ void InstanceImportTask::processFlame()
if(!pack.overrides.isEmpty())
{
QString overridePath = FS::PathCombine(m_stagingPath, pack.overrides);
if (QFile::exists(overridePath))
{
QString mcPath = FS::PathCombine(m_stagingPath, "minecraft");
if (!QFile::rename(overridePath, mcPath))
{
@ -207,6 +209,11 @@ void InstanceImportTask::processFlame()
return;
}
}
else
{
qWarning() << "The specified overrides folder is missing. Maybe the modpack was already used before?";
}
}
QString forgeVersion;
for(auto &loader: pack.minecraft.modLoaders)