From 60fb4db339066bab7616d8ef7a05c5f0679c71f6 Mon Sep 17 00:00:00 2001 From: Sude Date: Wed, 1 Jun 2016 14:25:05 +0300 Subject: [PATCH] Add DLC language packs to orphan check Forgot to add DLC language packs to Downloader::checkOrphans in ff2264763e4f1b1009eb10510a0d6dd738711e26 --- src/downloader.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/downloader.cpp b/src/downloader.cpp index aa51923..921d623 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2101,11 +2101,12 @@ void Downloader::checkOrphans() { // Check dlcs for (unsigned int k = 0; k < games[i].dlcs.size(); ++k) { - bFoundFile = isPresent(games[i].dlcs[k].installers, filepath_vector[j], config.blacklist) - || isPresent(games[i].dlcs[k].extras, filepath_vector[j], config.blacklist) - || isPresent(games[i].dlcs[k].patches, filepath_vector[j], config.blacklist); - if(bFoundFile) - break; + bFoundFile = isPresent(games[i].dlcs[k].installers, filepath_vector[j], config.blacklist) + || isPresent(games[i].dlcs[k].extras, filepath_vector[j], config.blacklist) + || isPresent(games[i].dlcs[k].patches, filepath_vector[j], config.blacklist) + || isPresent(games[i].dlcs[k].languagepacks, filepath_vector[j], config.blacklist); + if(bFoundFile) + break; } } if (!bFoundFile)