NOISSUE do not fail when the Flame overrides folder is missing
This commit is contained in:
parent
a269e0c92f
commit
f26ca143c4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user