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())
|
if(!pack.overrides.isEmpty())
|
||||||
{
|
{
|
||||||
QString overridePath = FS::PathCombine(m_stagingPath, pack.overrides);
|
QString overridePath = FS::PathCombine(m_stagingPath, pack.overrides);
|
||||||
|
if (QFile::exists(overridePath))
|
||||||
|
{
|
||||||
QString mcPath = FS::PathCombine(m_stagingPath, "minecraft");
|
QString mcPath = FS::PathCombine(m_stagingPath, "minecraft");
|
||||||
if (!QFile::rename(overridePath, mcPath))
|
if (!QFile::rename(overridePath, mcPath))
|
||||||
{
|
{
|
||||||
@ -207,6 +209,11 @@ void InstanceImportTask::processFlame()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
qWarning() << "The specified overrides folder is missing. Maybe the modpack was already used before?";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QString forgeVersion;
|
QString forgeVersion;
|
||||||
for(auto &loader: pack.minecraft.modLoaders)
|
for(auto &loader: pack.minecraft.modLoaders)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user