mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-28 15:18:21 +00:00
Merge branch 'develop' of github.com:MultiMC/MultiMC5 into develop
This commit is contained in:
commit
7d20e2478a
@ -242,10 +242,18 @@ void DownloadUpdateTask::processFileLists()
|
|||||||
for (VersionFileEntry newEntry : m_nVersionFileList)
|
for (VersionFileEntry newEntry : m_nVersionFileList)
|
||||||
{
|
{
|
||||||
if (newEntry.path == entry.path)
|
if (newEntry.path == entry.path)
|
||||||
continue;
|
{
|
||||||
|
QLOG_DEBUG() << "Not deleting" << entry.path << "because it is still present in the new version.";
|
||||||
|
goto SkipFile;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// If the loop reaches the end, we didn't find a match. Delete the file.
|
// If the loop reaches the end, we didn't find a match. Delete the file.
|
||||||
m_operationList.append(UpdateOperation::DeleteOp(entry.path));
|
m_operationList.append(UpdateOperation::DeleteOp(entry.path));
|
||||||
|
|
||||||
|
SkipFile:
|
||||||
|
// We goto here from the inner loop if we find an entry that has a corresponding entry in the new version's file list.
|
||||||
|
// This allows us to effectively continue the outer loop from the inner loop.
|
||||||
|
// In this case, goto is the more readable option.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a network job for downloading files.
|
// Create a network job for downloading files.
|
||||||
|
Loading…
Reference in New Issue
Block a user