Permalink
Browse files

NOISSUE do not fail when the Flame overrides folder is missing

  • Loading branch information...
peterix committed Sep 25, 2017
1 parent a269e0c commit f26ca143c48b878efa10712a9c1c362e84d479a5
Showing with 11 additions and 4 deletions.
  1. +11 −4 api/logic/InstanceImportTask.cpp
@@ -200,11 +200,18 @@ void InstanceImportTask::processFlame()
if(!pack.overrides.isEmpty())
{
QString overridePath = FS::PathCombine(m_stagingPath, pack.overrides);
QString mcPath = FS::PathCombine(m_stagingPath, "minecraft");
if (!QFile::rename(overridePath, mcPath))
if (QFile::exists(overridePath))
{
emitFailed(tr("Could not rename the overrides folder:\n") + pack.overrides);
return;
QString mcPath = FS::PathCombine(m_stagingPath, "minecraft");
if (!QFile::rename(overridePath, mcPath))
{
emitFailed(tr("Could not rename the overrides folder:\n") + pack.overrides);
return;
}
}
else
{
qWarning() << "The specified overrides folder is missing. Maybe the modpack was already used before?";
}
}

0 comments on commit f26ca14

Please sign in to comment.